summaryrefslogtreecommitdiff
path: root/program/steps/mail/mark.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-10-09 06:25:43 +0000
committeralecpl <alec@alec.pl>2008-10-09 06:25:43 +0000
commite70b3b24fc8ac7b54a820ae87ce8f4af4043125e (patch)
tree8b328475034b6be781c6c7076115340f4e71f30c /program/steps/mail/mark.inc
parent132aae7c4ea6e392845434bfa7aff2305e4ed408 (diff)
- send set_unread_count() only when changing /Seen status
Diffstat (limited to 'program/steps/mail/mark.inc')
-rw-r--r--program/steps/mail/mark.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/program/steps/mail/mark.inc b/program/steps/mail/mark.inc
index ce4249d54..c45131d26 100644
--- a/program/steps/mail/mark.inc
+++ b/program/steps/mail/mark.inc
@@ -40,12 +40,13 @@ if (($uids = get_input_value('_uid', RCUBE_INPUT_POST)) && ($flag = get_input_va
$OUTPUT->command('flag_deleted_as_read', $uids);
}
- if ($marked != -1)
+ if ($marked != -1 && ($flag == 'SEEN' || $flag == 'UNSEEN'))
{
$mbox_name = $IMAP->get_mailbox_name();
$OUTPUT->command('set_unread_count', $mbox_name, $IMAP->messagecount($mbox_name, 'UNSEEN'), ($mbox_name == 'INBOX'));
- $OUTPUT->send();
}
+
+ $OUTPUT->send();
}
exit;