diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-10-09 06:25:43 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-10-09 06:25:43 +0000 |
| commit | 5e0e5b575378dc5765649a7f889e4b7bffc8ab59 (patch) | |
| tree | 41367f14724005112a7e96548266b1785359bb75 | |
| parent | 85a7bf2bdbf5b17ba0bfbe514070db90fef63a76 (diff) | |
- send set_unread_count() only when changing /Seen status
git-svn-id: https://svn.roundcube.net/trunk@1962 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/program/steps/mail/mark.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/roundcubemail/program/steps/mail/mark.inc b/roundcubemail/program/steps/mail/mark.inc index ce4249d54..c45131d26 100644 --- a/roundcubemail/program/steps/mail/mark.inc +++ b/roundcubemail/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; |
