From 09fc3f3087cad8296e60c24e0b8e159374c20ec4 Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Mon, 27 Oct 2008 06:53:56 -0400 Subject: [PATCH] -fix: mark as read (for read_when_deleted) only when moving messages to trash --- program/steps/mail/move_del.inc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/program/steps/mail/move_del.inc b/program/steps/mail/move_del.inc index 7dd4489..673bd80 100644 --- a/program/steps/mail/move_del.inc +++ b/program/steps/mail/move_del.inc @@ -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); -- Gitblit v1.9.1