From cc6c7e83b53eb0c33d19b67081a489fb01b6f05e Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Tue, 11 Nov 2014 14:28:54 -0500
Subject: [PATCH] Fix possible race-condition in using current folder
---
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 d3edde2..5adc979 100644
--- a/program/steps/mail/show.inc
+++ b/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);
}
--
Gitblit v1.9.1