[Svn] r2018 - trunk/roundcubemail/program/steps/mail

trac at roundcube.net trac at roundcube.net
Mon Oct 27 11:53:56 CET 2008


Author: alec
Date: 2008-10-27 05:53:56 -0500 (Mon, 27 Oct 2008)
New Revision: 2018

Modified:
   trunk/roundcubemail/program/steps/mail/move_del.inc
Log:
-fix: mark as read (for read_when_deleted) only when moving messages to trash


Modified: trunk/roundcubemail/program/steps/mail/move_del.inc
===================================================================
--- trunk/roundcubemail/program/steps/mail/move_del.inc	2008-10-27 10:41:40 UTC (rev 2017)
+++ trunk/roundcubemail/program/steps/mail/move_del.inc	2008-10-27 10:53:56 UTC (rev 2018)
@@ -30,7 +30,7 @@
     $mbox = get_input_value('_mbox', RCUBE_INPUT_POST);
 
     // flag messages as read before moving them
-    if ($CONFIG['read_when_deleted'])
+    if ($CONFIG['read_when_deleted'] && $target == $CONFIG['trash_mbox'])
 	$IMAP->set_flag($uids, 'SEEN');
 
     $moved = $IMAP->move_message($uids, $target, $mbox);

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



More information about the Svn mailing list