summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2006-12-06 21:41:27 +0000
committerthomascube <thomas@roundcube.net>2006-12-06 21:41:27 +0000
commit1a98a6a5db16edcf2fdebcb1fd0919c6582ba513 (patch)
tree8ba883b0d9dfc50e0c8ca4a00af26aa8901eef45 /program/steps
parentb517af4a471283adc62ef82cb30b97e896bb6799 (diff)
Preview pane and marking as read (#1484132)
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/mail/show.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/program/steps/mail/show.inc b/program/steps/mail/show.inc
index 8e6c3cd36..fd82345bb 100644
--- a/program/steps/mail/show.inc
+++ b/program/steps/mail/show.inc
@@ -23,6 +23,8 @@ require_once('Mail/mimeDecode.php');
$PRINT_MODE = $_action=='print' ? TRUE : FALSE;
+// allow this request to be cached
+send_future_expire_header();
// similar code as in program/steps/mail/get.inc
if ($_GET['_uid'])
@@ -58,7 +60,7 @@ if ($_GET['_uid'])
// mark message as read
- if (!$MESSAGE['headers']->seen)
+ if (!$MESSAGE['headers']->seen && $_action != 'preview')
$IMAP->set_flag($_GET['_uid'], 'SEEN');
// give message uid to the client