summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-09-29 13:02:02 +0000
committeralecpl <alec@alec.pl>2008-09-29 13:02:02 +0000
commitbf2f39ea6d2b49c7495a43cca19ab18f27f8292e (patch)
tree3a8a331227665dfc1208c66bae490150881da3d3 /program/steps
parentf7028b207955a4e9e11b30036ed8f154c615f7d7 (diff)
- #1485290: Fix unread counter when displaying cached massage in preview panel
- remove some empty lines in app.js
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/mail/show.inc9
1 files changed, 1 insertions, 8 deletions
diff --git a/program/steps/mail/show.inc b/program/steps/mail/show.inc
index e5ea85791..c9999f3aa 100644
--- a/program/steps/mail/show.inc
+++ b/program/steps/mail/show.inc
@@ -67,14 +67,7 @@ if ($_GET['_uid']) {
// mark message as read
if (!$MESSAGE->headers->seen)
- {
- $marked = $IMAP->set_flag($MESSAGE->uid, 'SEEN');
- if($RCMAIL->action == 'preview' && $marked != -1)
- {
- $OUTPUT->command('parent.set_unread_count', $mbox_name, $IMAP->messagecount($mbox_name, 'UNSEEN'), ($mbox_name == 'INBOX'));
- $OUTPUT->command('parent.set_message', $MESSAGE->uid, 'unread', false);
- }
- }
+ $IMAP->set_flag($MESSAGE->uid, 'SEEN');
// give message uid to the client
$OUTPUT->set_env('uid', $MESSAGE->uid);