diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-10-27 10:41:40 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-10-27 10:41:40 +0000 |
| commit | e5050c283f5b74ca2146fea18965b1d55603189a (patch) | |
| tree | 5e5520788ef17bb8f669eaeab0bf972207484b5e /roundcubemail/program/steps | |
| parent | 1d9df03e2d337fbeb733155548a3bb148b584c9a (diff) | |
- Fix unread message unintentionally marked as read if read_when_deleted=true (#1485409)
git-svn-id: https://svn.roundcube.net/trunk@2017 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
| -rw-r--r-- | roundcubemail/program/steps/mail/move_del.inc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/roundcubemail/program/steps/mail/move_del.inc b/roundcubemail/program/steps/mail/move_del.inc index c8db35b29..7dd4489b8 100644 --- a/roundcubemail/program/steps/mail/move_del.inc +++ b/roundcubemail/program/steps/mail/move_del.inc @@ -28,6 +28,11 @@ if ($RCMAIL->action=='moveto' && !empty($_POST['_uid']) && !empty($_POST['_targe $count = sizeof(explode(',', ($uids = get_input_value('_uid', RCUBE_INPUT_POST)))); $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']) + $IMAP->set_flag($uids, 'SEEN'); + $moved = $IMAP->move_message($uids, $target, $mbox); if (!$moved) { @@ -38,10 +43,6 @@ if ($RCMAIL->action=='moveto' && !empty($_POST['_uid']) && !empty($_POST['_targe exit; } - // 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'); - if (!$CONFIG['flag_for_deletion']) $addrows = true; } |
