summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-10-01 08:31:47 +0000
committeralecpl <alec@alec.pl>2009-10-01 08:31:47 +0000
commit7d1db8c9014957c05125c9150dfb40f1bd22d840 (patch)
tree3ac03bf1d1ed876c2d8ef26611cf8b7be11d44b1 /program
parentef70b856a392f27ef75f38468b6d09af72bfdac4 (diff)
- fix setting unread count in pagetitle
Diffstat (limited to 'program')
-rw-r--r--program/steps/mail/func.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index 0f835e9ae..38b3acfc5 100644
--- a/program/steps/mail/func.inc
+++ b/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