diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-10-29 12:18:05 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-10-29 12:18:05 +0000 |
| commit | f7974f31fd95c58a56e85755c4de0b85c4c53dd4 (patch) | |
| tree | 33df7be874e60ad85d8c6253bedc71d70a9b4ab0 /roundcubemail/program/steps | |
| parent | 66cb279cd12c826a3acafa368dbbdd56fdd3029e (diff) | |
- Improve performance of setting IMAP flags using .SILENT suffix
git-svn-id: https://svn.roundcube.net/trunk@4160 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
| -rw-r--r-- | roundcubemail/program/steps/mail/mark.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/program/steps/mail/mark.inc b/roundcubemail/program/steps/mail/mark.inc index 9266cf404..57eae64e2 100644 --- a/roundcubemail/program/steps/mail/mark.inc +++ b/roundcubemail/program/steps/mail/mark.inc @@ -43,7 +43,7 @@ if (($uids = get_input_value('_uid', RCUBE_INPUT_POST)) && ($flag = get_input_va $marked = $IMAP->set_flag($uids, $flag); - if ($marked == -1) { + if (!$marked) { // send error message if ($_POST['_from'] != 'show') $OUTPUT->command('list_mailbox'); @@ -56,7 +56,7 @@ if (($uids = get_input_value('_uid', RCUBE_INPUT_POST)) && ($flag = get_input_va $ruids = get_input_value('_ruid', RCUBE_INPUT_POST); $read = $IMAP->set_flag($ruids, 'SEEN'); - if ($read != -1 && !$CONFIG['skip_deleted']) + if ($read && !$CONFIG['skip_deleted']) $OUTPUT->command('flag_deleted_as_read', $ruids); } |
