summaryrefslogtreecommitdiff
path: root/program/steps/mail/move_del.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-07-31 15:23:06 +0000
committerthomascube <thomas@roundcube.net>2008-07-31 15:23:06 +0000
commitd224551cfbf5903505f41bc9e51ad9840119942f (patch)
treebba34ac33cfa6a1784cd08cdc8989a9ecab366bf /program/steps/mail/move_del.inc
parente1367cf1a6d2ea857c57ad1677de1a8f0c1f1a3e (diff)
Fix read_when_deleted behavior + javascript codestyle
Diffstat (limited to 'program/steps/mail/move_del.inc')
-rw-r--r--program/steps/mail/move_del.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/program/steps/mail/move_del.inc b/program/steps/mail/move_del.inc
index d8a017171..5fbb41c55 100644
--- a/program/steps/mail/move_del.inc
+++ b/program/steps/mail/move_del.inc
@@ -29,7 +29,12 @@ if ($RCMAIL->action=='moveto' && !empty($_POST['_uid']) && !empty($_POST['_targe
$target = get_input_value('_target_mbox', RCUBE_INPUT_POST);
$moved = $IMAP->move_message($uids, $target, get_input_value('_mbox', RCUBE_INPUT_POST));
- if (!$moved) {
+ if ($moved) {
+ // flag old messages as read because rcube_imap will not send expunge command after moving
+ if ($CONFIG['read_when_deleted'])
+ $IMAP->set_flag($uids, 'SEEN');
+ }
+ else {
// send error message
$OUTPUT->command('list_mailbox');
$OUTPUT->show_message('errormoving', 'error');