[Svn] r2010 - in trunk/roundcubemail: . program/steps/mail

trac at roundcube.net trac at roundcube.net
Sat Oct 25 18:29:35 CEST 2008


Author: alec
Date: 2008-10-25 11:29:34 -0500 (Sat, 25 Oct 2008)
New Revision: 2010

Modified:
   trunk/roundcubemail/CHANGELOG
   trunk/roundcubemail/program/steps/mail/show.inc
Log:
- Don't send disposition notification receipts for messages marked as 'read' (#1485523)


Modified: trunk/roundcubemail/CHANGELOG
===================================================================
--- trunk/roundcubemail/CHANGELOG	2008-10-25 00:01:45 UTC (rev 2009)
+++ trunk/roundcubemail/CHANGELOG	2008-10-25 16:29:34 UTC (rev 2010)
@@ -1,6 +1,10 @@
 CHANGELOG RoundCube Webmail
 ---------------------------
 
+2008/10/25 (alec)
+----------
+- Don't send disposition notification receipts for messages marked as 'read' (#1485523)
+
 2008/10/24 (alec)
 ----------
 - Added option 'identities_level', removed 'multiple_identities'

Modified: trunk/roundcubemail/program/steps/mail/show.inc
===================================================================
--- trunk/roundcubemail/program/steps/mail/show.inc	2008-10-25 00:01:45 UTC (rev 2009)
+++ trunk/roundcubemail/program/steps/mail/show.inc	2008-10-25 16:29:34 UTC (rev 2010)
@@ -69,10 +69,6 @@
 
   $OUTPUT->set_pagetitle($MESSAGE->subject);
   
-  // mark message as read
-  if (!$MESSAGE->headers->seen)
-    $IMAP->set_flag($MESSAGE->uid, 'SEEN');
-
   // give message uid to the client
   $OUTPUT->set_env('uid', $MESSAGE->uid);
   // set environement
@@ -87,7 +83,7 @@
     
   // check for unset disposition notification
   if ($MESSAGE->headers->mdn_to &&
-      !$MESSAGE->headers->mdn_sent &&
+      !$MESSAGE->headers->mdn_sent && !$MESSAGE->headers->seen &&
       $IMAP->check_permflag('MDNSENT') &&
       $mbox_name != $CONFIG['drafts_mbox'] &&
       $mbox_name != $CONFIG['sent_mbox'])
@@ -140,6 +136,10 @@
     $OUTPUT->set_env('next_uid', $next);
   if ($last >0)
     $OUTPUT->set_env('last_uid', $last);
+
+  // mark message as read
+  if (!$MESSAGE->headers->seen)
+    $IMAP->set_flag($MESSAGE->uid, 'SEEN');
   }
 
 

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list