From 1a98a6a5db16edcf2fdebcb1fd0919c6582ba513 Mon Sep 17 00:00:00 2001 From: thomascube Date: Wed, 6 Dec 2006 21:41:27 +0000 Subject: Preview pane and marking as read (#1484132) --- program/steps/mail/show.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'program/steps') 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 -- cgit v1.2.3