diff options
author | thomascube <thomas@roundcube.net> | 2010-12-17 15:07:04 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2010-12-17 15:07:04 +0000 |
commit | db1a87cd6c506f2afbd1a37c64cb56ae11120b49 (patch) | |
tree | 07e1d350a06e0529db08316621b9c629bfb90b58 /program/steps/mail/show.inc | |
parent | acd5200b2110498793e04fb016cbbc69ea5fe9f3 (diff) |
Update branch for 0.5-rc releasev0.5-rc@4349
Diffstat (limited to 'program/steps/mail/show.inc')
-rw-r--r-- | program/steps/mail/show.inc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/program/steps/mail/show.inc b/program/steps/mail/show.inc index e660207cd..45dd8e168 100644 --- a/program/steps/mail/show.inc +++ b/program/steps/mail/show.inc @@ -196,8 +196,11 @@ else 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; + if ($IMAP->set_flag($MESSAGE->uid, 'SEEN')) { + if ($count = rcmail_get_unseen_count($mbox_name)) { + rcmail_set_unseen_count($mbox_name, $count - 1); + } + } } exit; |