summaryrefslogtreecommitdiff
path: root/program/steps/mail
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2007-11-29 14:17:32 +0000
committerthomascube <thomas@roundcube.net>2007-11-29 14:17:32 +0000
commited54070eb5c942e9745efd7ad57a4ff02deeaf04 (patch)
treecbce9cca45170550476e5a30459d3cdcbb119a7d /program/steps/mail
parent11074801923807a9448f7427299ddba76e235e42 (diff)
Track message disposition notification flag and headers
Diffstat (limited to 'program/steps/mail')
-rw-r--r--program/steps/mail/show.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/program/steps/mail/show.inc b/program/steps/mail/show.inc
index 4dcdec362..022edb0ed 100644
--- a/program/steps/mail/show.inc
+++ b/program/steps/mail/show.inc
@@ -72,6 +72,10 @@ if ($_GET['_uid'])
// give message uid to the client
$OUTPUT->set_env('uid', $MESSAGE['UID']);
$OUTPUT->set_env('safemode', intval($_GET['_safe']));
+
+ // check for unset disposition notification
+ if ($MESSAGE['headers']->mdn_to && !$MESSAGE['headers']->mdn_sent)
+ $OUTPUT->set_env('mdn_request', true);
$next = $prev = -1;
// get previous, first, next and last message UID