From: pdontthink Date: Sun, 5 Apr 2009 04:49:15 +0000 (+0000) Subject: Handle subfolders as sent too! X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=19285e85333dd389c3fc3f291bc568afe2e31771;ds=sidebyside Handle subfolders as sent too! git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13519 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/right_main.php b/src/right_main.php index cb95fefe..8d888607 100644 --- a/src/right_main.php +++ b/src/right_main.php @@ -128,8 +128,8 @@ $aMailboxPref[MBX_PREF_COLUMNS] = $index_order; /** * Replace From => To in case it concerns a draft or sent folder */ -if (($mailbox == $sent_folder || $mailbox == $draft_folder) && - !in_array(SQM_COL_TO,$aMailboxPref[MBX_PREF_COLUMNS])) { +if (handleAsSent($mailbox) + && !in_array(SQM_COL_TO,$aMailboxPref[MBX_PREF_COLUMNS])) { $aNewOrder = array(); // nice var name ;) foreach($aMailboxPref[MBX_PREF_COLUMNS] as $iCol) { if ($iCol == SQM_COL_FROM) {