summaryrefslogtreecommitdiff
path: root/program/steps/mail
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-11-11 14:28:54 -0500
committerAleksander Machniak <alec@alec.pl>2014-11-11 14:28:54 -0500
commitcc6c7e83b53eb0c33d19b67081a489fb01b6f05e (patch)
tree8031eb81e9b85b9a70800d7985c7766a304a82b8 /program/steps/mail
parent01bc27536a7a78a74ce7b316fed102150b5dbcc3 (diff)
Fix possible race-condition in using current folder
Diffstat (limited to 'program/steps/mail')
-rw-r--r--program/steps/mail/show.inc2
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);
}