diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-04-12 17:37:22 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-04-12 17:37:22 +0000 |
| commit | 31d7fb58a51e4bdd6b85f48b58cb4a0b7ec83a1e (patch) | |
| tree | 4861e3811560d719058fedd71e85edbc04f36e12 /roundcubemail/program/steps/mail | |
| parent | 83a4e859f8ae505f06c184eb60577529ff6c4be8 (diff) | |
- Fixed and optimized 'read_when_deleted': mark as read on server side
in one action when marking as deleted, fixed js bugs when deleting
from message preview page
git-svn-id: https://svn.roundcube.net/trunk@1292 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/mail')
| -rw-r--r-- | roundcubemail/program/steps/mail/mark.inc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/roundcubemail/program/steps/mail/mark.inc b/roundcubemail/program/steps/mail/mark.inc index 53194b5ab..830f1fe3d 100644 --- a/roundcubemail/program/steps/mail/mark.inc +++ b/roundcubemail/program/steps/mail/mark.inc @@ -29,6 +29,15 @@ if (($uids = get_input_value('_uid', RCUBE_INPUT_POST)) && ($flag = get_input_va $flag = $a_flags_map[$flag] ? $a_flags_map[$flag] : strtoupper($flag); $marked = $IMAP->set_flag($uids, $flag); + if($flag == 'DELETED' && $CONFIG['read_when_deleted'] && !empty($_POST['_ruid'])) + { + $uids = get_input_value('_ruid', RCUBE_INPUT_POST); + $read = $IMAP->set_flag($uids, 'SEEN'); + + if ($read != -1) + $OUTPUT->command('flag_deleted_as_read', $uids); + } + if ($marked != -1) { $mbox_name = $IMAP->get_mailbox_name(); |
