Aleksander Machniak
2014-11-11 cc6c7e83b53eb0c33d19b67081a489fb01b6f05e
Fix possible race-condition in using current folder
1 files modified
2 ■■■ changed files
program/steps/mail/show.inc 2 ●●● patch | view | raw | blame | history
program/steps/mail/show.inc
@@ -178,7 +178,7 @@
// mark message as read
if (!empty($set_seen_flag)) {
    if ($RCMAIL->storage->set_flag($MESSAGE->uid, 'SEEN')) {
    if ($RCMAIL->storage->set_flag($MESSAGE->uid, 'SEEN', $mbox_name)) {
        if ($count = rcmail_get_unseen_count($mbox_name)) {
            rcmail_set_unseen_count($mbox_name, $count - 1);
        }