diff options
author | alecpl <alec@alec.pl> | 2009-09-17 12:36:32 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2009-09-17 12:36:32 +0000 |
commit | cbeea3d4d092f6ae2310175a57fe15b43d608b33 (patch) | |
tree | ef4b728613e90b78532d937ba171b41d64acd07b /program/steps/mail/mark.inc | |
parent | 78925f8f1a9afb9475a9cf9ad1b35daade23da85 (diff) |
- some code improvements for r2959 change
Diffstat (limited to 'program/steps/mail/mark.inc')
-rw-r--r-- | program/steps/mail/mark.inc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/program/steps/mail/mark.inc b/program/steps/mail/mark.inc index c065b3f92..014108ffc 100644 --- a/program/steps/mail/mark.inc +++ b/program/steps/mail/mark.inc @@ -61,13 +61,7 @@ if (($uids = get_input_value('_uid', RCUBE_INPUT_POST)) && ($flag = get_input_va } if ($flag == 'SEEN' || $flag == 'UNSEEN' || ($flag == 'DELETED' && !$CONFIG['skip_deleted'])) { - $mbox_name = $IMAP->get_mailbox_name(); - $unseen = $IMAP->messagecount($mbox_name, 'UNSEEN'); - $old_unseen = $_SESSION['unseen_count'][$mbox_name]; - if ($old_unseen != $unseen) { - $OUTPUT->command('set_unread_count', $mbox_name, $unseen, ($mbox_name == 'INBOX')); - $_SESSION['unseen_count'][$mbox_name] = $unseen; - } + rcmail_send_unread_count($IMAP->get_mailbox_name()); } else if ($flag == 'DELETED' && $CONFIG['skip_deleted']) { if ($_POST['_from'] == 'show') { |