summaryrefslogtreecommitdiff
path: root/program/steps/mail/show.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-07-15 16:48:20 +0000
committerthomascube <thomas@roundcube.net>2008-07-15 16:48:20 +0000
commit5b3dd412d2e28f80fb2d12dbdcab992cc6f219a5 (patch)
tree14d76abe90c8906039cc1fbe6d48408d97f1014b /program/steps/mail/show.inc
parente3e597e3b6c9ae10e5c7c1e5592726c71793cfe7 (diff)
Check PERMANENTFLAGS before saving MDNSent flag (#1484963, #1485163)
Diffstat (limited to 'program/steps/mail/show.inc')
-rw-r--r--program/steps/mail/show.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/program/steps/mail/show.inc b/program/steps/mail/show.inc
index bff4e6861..ef88c7baf 100644
--- a/program/steps/mail/show.inc
+++ b/program/steps/mail/show.inc
@@ -82,8 +82,11 @@ if ($_GET['_uid']) {
$OUTPUT->set_env('sender', $MESSAGE->sender['string']);
// check for unset disposition notification
- if ($MESSAGE->headers->mdn_to && !$MESSAGE->headers->mdn_sent &&
- $mbox_name != $CONFIG['drafts_mbox'] && $mbox_name != $CONFIG['sent_mbox'])
+ if ($MESSAGE->headers->mdn_to &&
+ !$MESSAGE->headers->mdn_sent &&
+ $IMAP->check_permflag('MDNSENT') &&
+ $mbox_name != $CONFIG['drafts_mbox'] &&
+ $mbox_name != $CONFIG['sent_mbox'])
{
if (intval($CONFIG['mdn_requests']) === 1)
{