summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps/mail/func.inc
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-11-24 10:42:24 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-11-24 10:42:24 +0000
commit88bd0cc5b5325e1bdd0cca0cf0de371ad5fe10ab (patch)
treecd2678bf7a0559a90ad74e8dc700c92f7c99228b /roundcubemail/program/steps/mail/func.inc
parentc7de0310a4d92eaf512fdac73472b8b584734e2c (diff)
- Mark folder as recent only when it contains unseen messages
git-svn-id: https://svn.roundcube.net/trunk@5484 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/mail/func.inc')
-rw-r--r--roundcubemail/program/steps/mail/func.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc
index 2d25fe31b..a331da284 100644
--- a/roundcubemail/program/steps/mail/func.inc
+++ b/roundcubemail/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);