diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-11-11 14:28:54 -0500 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-11-11 14:28:54 -0500 |
commit | cc6c7e83b53eb0c33d19b67081a489fb01b6f05e (patch) | |
tree | 8031eb81e9b85b9a70800d7985c7766a304a82b8 | |
parent | 01bc27536a7a78a74ce7b316fed102150b5dbcc3 (diff) |
Fix possible race-condition in using current folder
-rw-r--r-- | program/steps/mail/show.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/mail/show.inc b/program/steps/mail/show.inc index d3edde277..5adc97900 100644 --- a/program/steps/mail/show.inc +++ b/program/steps/mail/show.inc @@ -178,7 +178,7 @@ else // 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); } |