- send set_unread_count() only when changing /Seen status

release-0.6
alecpl 16 years ago
parent 132aae7c4e
commit e70b3b24fc

@ -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;

Loading…
Cancel
Save