diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-09-11 12:11:16 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-09-11 12:11:16 +0000 |
| commit | 3f2dda319ceb9a31415d5218f92c5be2c723dad9 (patch) | |
| tree | 922846d5d92510def510a6c44e49d99dae39c997 /roundcubemail/program | |
| parent | 06ea99e45164a9b3d61baef051d989901b0db6b1 (diff) | |
- show Recipient column also for subfolders of Sent/Drafts
git-svn-id: https://svn.roundcube.net/trunk@2944 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
| -rw-r--r-- | roundcubemail/program/steps/mail/func.inc | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc index ed36e84a8..4cb2f8176 100644 --- a/roundcubemail/program/steps/mail/func.inc +++ b/roundcubemail/program/steps/mail/func.inc @@ -152,10 +152,11 @@ function rcmail_message_list($attrib) $a_sort_cols = array('subject', 'date', 'from', 'to', 'size'); $mbox = $IMAP->get_mailbox_name(); - - // show 'to' instead of from in sent messages - if (($mbox==$CONFIG['sent_mbox'] || $mbox==$CONFIG['drafts_mbox']) && ($f = array_search('from', $a_show_cols)) - && !array_search('to', $a_show_cols)) + $delim = $IMAP->get_hierarchy_delimiter(); + + // show 'to' instead of 'from' in sent/draft messages + if ((strpos($mbox.$delim, $CONFIG['sent_mbox'].$delim)===0 || strpos($mbox.$delim, $CONFIG['drafts_mbox'].$delim)===0) + && ($f = array_search('from', $a_show_cols)) && !array_search('to', $a_show_cols)) $a_show_cols[$f] = 'to'; // add col definition @@ -392,9 +393,10 @@ function rcmail_js_message_list($a_headers, $insert_top=FALSE, $replace=TRUE) $a_show_cols = $_SESSION['list_columns']; $mbox = $IMAP->get_mailbox_name(); - - // show 'to' instead of from in sent messages - if (($mbox == $CONFIG['sent_mbox'] || $mbox == $CONFIG['drafts_mbox']) + $delim = $IMAP->get_hierarchy_delimiter(); + + // show 'to' instead of 'from' in sent/draft messages + if ((strpos($mbox.$delim, $CONFIG['sent_mbox'].$delim)===0 || strpos($mbox.$delim, $CONFIG['drafts_mbox'].$delim)===0) && (($f = array_search('from', $a_show_cols)) !== false) && array_search('to', $a_show_cols) === false) $a_show_cols[$f] = 'to'; |
