diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2014-04-08 19:11:12 +0200 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2014-04-08 19:11:12 +0200 |
commit | 188247894f6aff3a11f68bbdf94626b8bf58b852 (patch) | |
tree | b6997429e9b4d1bdf787dbfdf3e29cdbc72cf5db /program/steps/mail/mark.inc | |
parent | 05e3d11554f751ed6a614abe343141aa1e6ea6da (diff) |
Make multi-folder message identifiers work with folders containing commas
Diffstat (limited to 'program/steps/mail/mark.inc')
-rw-r--r-- | program/steps/mail/mark.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/program/steps/mail/mark.inc b/program/steps/mail/mark.inc index e81f6c9f5..4e83f975c 100644 --- a/program/steps/mail/mark.inc +++ b/program/steps/mail/mark.inc @@ -68,7 +68,9 @@ if (($_uids = rcube_utils::get_input_value('_uid', rcube_utils::INPUT_POST)) if ($flag == 'DELETED' && $read_deleted && !empty($_POST['_ruid'])) { $ruids = rcube_utils::get_input_value('_ruid', rcube_utils::INPUT_POST); - $read = $RCMAIL->storage->set_flag($ruids, 'SEEN'); + foreach (rcmail::get_uids($ruids) as $mbox => $uids) { + $read += (int)$RCMAIL->storage->set_flag($uids, 'SEEN', $mbox); + } if ($read && !$skip_deleted) { $OUTPUT->command('flag_deleted_as_read', $ruids); |