diff options
author | alecpl <alec@alec.pl> | 2011-11-24 10:42:24 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-11-24 10:42:24 +0000 |
commit | f4cfb1414ad85b70977fb83989ad906e061827bd (patch) | |
tree | 2f87b9d71c12f409b1767345c575c18ab28d5788 /program/steps/mail/func.inc | |
parent | 636bd77074638a1132b8933c4fb114373aaec296 (diff) |
- Mark folder as recent only when it contains unseen messages
Diffstat (limited to 'program/steps/mail/func.inc')
-rw-r--r-- | program/steps/mail/func.inc | 3 |
1 files changed, 2 insertions, 1 deletions
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); |