From ed54070eb5c942e9745efd7ad57a4ff02deeaf04 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Thu, 29 Nov 2007 09:17:32 -0500
Subject: [PATCH] Track message disposition notification flag and headers

---
 program/steps/mail/show.inc |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/program/steps/mail/show.inc b/program/steps/mail/show.inc
index 4dcdec3..022edb0 100644
--- a/program/steps/mail/show.inc
+++ b/program/steps/mail/show.inc
@@ -72,6 +72,10 @@
   // 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

--
Gitblit v1.9.1