From eb4b147badf67f7ddad520ec8be736333c930686 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Mon, 07 Sep 2009 08:25:10 -0400
Subject: [PATCH] - fix cache flushing after message delete with read_when_deleted=true + some code cleanup

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

diff --git a/program/steps/mail/move_del.inc b/program/steps/mail/move_del.inc
index 103d69e..fbfbabf 100644
--- a/program/steps/mail/move_del.inc
+++ b/program/steps/mail/move_del.inc
@@ -33,10 +33,6 @@
     $target = get_input_value('_target_mbox', RCUBE_INPUT_POST);
     $mbox = get_input_value('_mbox', RCUBE_INPUT_POST);
 
-    // flag messages as read before moving them
-    if ($CONFIG['read_when_deleted'] && $target == $CONFIG['trash_mbox'])
-	$IMAP->set_flag($uids, 'SEEN');
-
     $moved = $IMAP->move_message($uids, $target, $mbox);
   
     if (!$moved) {

--
Gitblit v1.9.1