Changeset 1285 in subversion for trunk/roundcubemail/program/steps/mail/show.inc
- Timestamp:
- Apr 11, 2008 12:53:59 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/roundcubemail/program/steps/mail/show.inc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/steps/mail/show.inc
r1195 r1285 54 54 $MESSAGE['is_safe'] = 1; 55 55 56 $mbox_name = $IMAP->get_mailbox_name(); 57 56 58 // calculate Etag for this request 57 $etag = md5($MESSAGE['UID'].$ IMAP->get_mailbox_name().session_id().intval($MESSAGE['headers']->mdn_sent).intval($MESSAGE['is_safe']).intval($PRINT_MODE));59 $etag = md5($MESSAGE['UID'].$mbox_name.session_id().intval($MESSAGE['headers']->mdn_sent).intval($MESSAGE['is_safe']).intval($PRINT_MODE)); 58 60 59 61 // allow caching, unless remote images are present … … 76 78 $MESSAGE['body'] = $IMAP->get_body($MESSAGE['UID']); 77 79 78 79 80 // mark message as read 80 if (!$MESSAGE['headers']->seen && $_action != 'preview') 81 $IMAP->set_flag($MESSAGE['UID'], 'SEEN'); 81 if (!$MESSAGE['headers']->seen) 82 { 83 $marked = $IMAP->set_flag($MESSAGE['UID'], 'SEEN'); 84 if($_action == 'preview' && $marked != -1) 85 { 86 $OUTPUT->command('set_unread_count_from_preview', $mbox_name, $IMAP->messagecount($mbox_name, 'UNSEEN'), ($mbox_name == 'INBOX')); 87 $OUTPUT->command('mark_as_read_from_preview', $MESSAGE['UID']); 88 } 89 } 82 90 83 91 // give message uid to the client … … 86 94 87 95 // check for unset disposition notification 88 if ($MESSAGE['headers']->mdn_to && !$MESSAGE['headers']->mdn_sent && $ IMAP->get_mailbox_name()!= $CONFIG['drafts_mbox'])96 if ($MESSAGE['headers']->mdn_to && !$MESSAGE['headers']->mdn_sent && $mbox_name != $CONFIG['drafts_mbox']) 89 97 { 90 98 if (intval($CONFIG['mdn_requests']) === 1)
Note: See TracChangeset
for help on using the changeset viewer.
