diff options
author | alecpl <alec@alec.pl> | 2009-10-01 08:31:47 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2009-10-01 08:31:47 +0000 |
commit | 7d1db8c9014957c05125c9150dfb40f1bd22d840 (patch) | |
tree | 3ac03bf1d1ed876c2d8ef26611cf8b7be11d44b1 /program | |
parent | ef70b856a392f27ef75f38468b6d09af72bfdac4 (diff) |
- fix setting unread count in pagetitle
Diffstat (limited to 'program')
-rw-r--r-- | program/steps/mail/func.inc | 2 |
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 |