summaryrefslogtreecommitdiff
path: root/program/steps/mail/func.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2006-12-04 22:34:40 +0000
committerthomascube <thomas@roundcube.net>2006-12-04 22:34:40 +0000
commit421f5e31a2e9d40b505ea5200d6e616ae07e1565 (patch)
tree02d2cc2433a0c751fbf4c70dd886e65d1527c0f1 /program/steps/mail/func.inc
parent494f07b8bfefd7134a7f8f88b1bce9fa1555eb97 (diff)
Small bugfixes and improvements
Diffstat (limited to 'program/steps/mail/func.inc')
-rw-r--r--program/steps/mail/func.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index d655a3316..9bda8906d 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -513,8 +513,8 @@ function rcmail_js_message_list($a_headers, $insert_top=FALSE)
$a_show_cols = is_array($CONFIG['list_cols']) ? $CONFIG['list_cols'] : array('subject');
// show 'to' instead of from in sent messages
- if (strtolower($IMAP->get_mailbox_name())=='sent' && ($f = array_search('from', $a_show_cols))
- && !array_search('to', $a_show_cols))
+ if (($IMAP->get_mailbox_name()==$CONFIG['sent_mbox'] || $IMAP->get_mailbox_name()==$CONFIG['drafts_mbox'])
+ && ($f = array_search('from', $a_show_cols)) && !array_search('to', $a_show_cols))
$a_show_cols[$f] = 'to';
$commands .= sprintf("this.set_message_coltypes(%s);\n", array2js($a_show_cols));