summaryrefslogtreecommitdiff
path: root/program/steps/mail/mark.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-10-29 12:18:05 +0000
committeralecpl <alec@alec.pl>2010-10-29 12:18:05 +0000
commitc309cd8928af861637996f5c5490a2db0dc626dc (patch)
tree42f9bc0e31f9ee945f6ca0d5829da6022a1593b8 /program/steps/mail/mark.inc
parent7bdd3e22b56b17df7f15d2179f7918c9a5d15da1 (diff)
- Improve performance of setting IMAP flags using .SILENT suffix
Diffstat (limited to 'program/steps/mail/mark.inc')
-rw-r--r--program/steps/mail/mark.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/steps/mail/mark.inc b/program/steps/mail/mark.inc
index 9266cf404..57eae64e2 100644
--- a/program/steps/mail/mark.inc
+++ b/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);
}