summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-10-01 08:31:47 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-10-01 08:31:47 +0000
commitcc19227fbe2b4a8520409ba0358a3e31581b9d21 (patch)
tree044660f01239153597fa101128801a812039409f
parent58c13bf91a1bf00f675b33e37956a7a46b340f01 (diff)
- fix setting unread count in pagetitle
git-svn-id: https://svn.roundcube.net/trunk@3005 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/program/steps/mail/func.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc
index 0f835e9ae..38b3acfc5 100644
--- a/roundcubemail/program/steps/mail/func.inc
+++ b/roundcubemail/program/steps/mail/func.inc
@@ -625,7 +625,7 @@ function rcmail_send_unread_count($mbox_name, $force=false)
$old_unseen = $_SESSION['unseen_count'][$mbox_name];
$unseen = $RCMAIL->imap->messagecount($mbox_name, 'UNSEEN', $force);
- if ($unseen != $old_unseen)
+ if ($unseen != $old_unseen || ($mbox_name == 'INBOX'))
$RCMAIL->output->command('set_unread_count', $mbox_name, $unseen, ($mbox_name == 'INBOX'));
// @TODO: this data is doubled (session and cache tables) if caching is enabled