diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-05-03 18:27:38 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-05-03 18:27:38 +0000 |
| commit | 5db16c76d7f0593f2799df04a9f6556e05f8c363 (patch) | |
| tree | 10b5b254134953fd9eeb6448b05ea49a96fcba5f | |
| parent | 1498b21d487fa99891c7fa32e3319b96ef843aaa (diff) | |
- fix unseen messages counter after unseen message preview
git-svn-id: https://svn.roundcube.net/trunk@3589 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/program/steps/mail/show.inc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/roundcubemail/program/steps/mail/show.inc b/roundcubemail/program/steps/mail/show.inc index 10de46a36..82af4780f 100644 --- a/roundcubemail/program/steps/mail/show.inc +++ b/roundcubemail/program/steps/mail/show.inc @@ -226,8 +226,12 @@ else // mark message as read -if ($MESSAGE && $MESSAGE->headers && !$MESSAGE->headers->seen && ($RCMAIL->action == 'show' || ($RCMAIL->action == 'preview' && intval($CONFIG['preview_pane_mark_read']) == 0))) - $IMAP->set_flag($MESSAGE->uid, 'SEEN'); +if ($MESSAGE && $MESSAGE->headers && !$MESSAGE->headers->seen && + ($RCMAIL->action == 'show' || ($RCMAIL->action == 'preview' && intval($CONFIG['preview_pane_mark_read']) == 0))) +{ + if ($IMAP->set_flag($MESSAGE->uid, 'SEEN') && $_SESSION['unseen_count'][$mbox_name]) + $_SESSION['unseen_count'][$mbox_name] -= 1; +} exit; |
