From 636bd77074638a1132b8933c4fb114373aaec296 Mon Sep 17 00:00:00 2001 From: alecpl Date: Thu, 24 Nov 2011 10:26:35 +0000 Subject: - Mark (with different color) folders with recent messages (#1486234) --- program/steps/mail/check_recent.inc | 3 ++- program/steps/mail/func.inc | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'program/steps') diff --git a/program/steps/mail/check_recent.inc b/program/steps/mail/check_recent.inc index e22cccca5..ab0d3c818 100644 --- a/program/steps/mail/check_recent.inc +++ b/program/steps/mail/check_recent.inc @@ -49,7 +49,8 @@ foreach ($a_mailboxes as $mbox_name) { array('mailbox' => $mbox_name, 'is_current' => $is_current)); } - rcmail_send_unread_count($mbox_name, true); + rcmail_send_unread_count($mbox_name, true, null, + (!$is_current && ($status & 1)) ? 'recent' : ''); if ($status && $is_current) { // refresh saved search set diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index 8407b06cd..2d25fe31b 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -472,7 +472,7 @@ function rcmail_get_mailbox_name_text() } -function rcmail_send_unread_count($mbox_name, $force=false, $count=null) +function rcmail_send_unread_count($mbox_name, $force=false, $count=null, $mark='') { global $RCMAIL; @@ -484,7 +484,7 @@ function rcmail_send_unread_count($mbox_name, $force=false, $count=null) $unseen = $count; if ($unseen != $old_unseen || ($mbox_name == 'INBOX')) - $RCMAIL->output->command('set_unread_count', $mbox_name, $unseen, ($mbox_name == 'INBOX')); + $RCMAIL->output->command('set_unread_count', $mbox_name, $unseen, ($mbox_name == 'INBOX'), $mark); rcmail_set_unseen_count($mbox_name, $unseen); -- cgit v1.2.3