From f4cfb1414ad85b70977fb83989ad906e061827bd Mon Sep 17 00:00:00 2001 From: alecpl Date: Thu, 24 Nov 2011 10:42:24 +0000 Subject: [PATCH] - Mark folder as recent only when it contains unseen messages --- program/steps/mail/func.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index 2d25fe31b..a331da284 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -484,7 +484,8 @@ function rcmail_send_unread_count($mbox_name, $force=false, $count=null, $mark=' $unseen = $count; if ($unseen != $old_unseen || ($mbox_name == 'INBOX')) - $RCMAIL->output->command('set_unread_count', $mbox_name, $unseen, ($mbox_name == 'INBOX'), $mark); + $RCMAIL->output->command('set_unread_count', $mbox_name, $unseen, + ($mbox_name == 'INBOX'), $unseen && $mark ? $mark : ''); rcmail_set_unseen_count($mbox_name, $unseen);