summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-01-28 10:52:02 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-01-28 10:52:02 +0000
commit43c7d3a814c273aec88d99b83cd3d616fb5969f6 (patch)
tree9b12d03f28e2081860e081d486ce28dddb6a62f6 /roundcubemail/program/steps
parent990b56b22650010732731da5cf4b997b1826a345 (diff)
- Fix MDNSent flag checking, use arbitrary keywords (asterisk) flag (#1485706)
git-svn-id: https://svn.roundcube.net/trunk@2263 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
-rw-r--r--roundcubemail/program/steps/mail/func.inc3
-rw-r--r--roundcubemail/program/steps/mail/show.inc2
2 files changed, 3 insertions, 2 deletions
diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc
index 06d949838..0ccc2cc13 100644
--- a/roundcubemail/program/steps/mail/func.inc
+++ b/roundcubemail/program/steps/mail/func.inc
@@ -1296,7 +1296,8 @@ function rcmail_send_mdn($uid)
$message = new rcube_message($uid);
- if ($message->headers->mdn_to && !$message->headers->mdn_sent && $IMAP->check_permflag('MDNSENT'))
+ if ($message->headers->mdn_to && !$message->headers->mdn_sent &&
+ ($IMAP->check_permflag('MDNSENT') || $IMAP->check_permflag('*')))
{
$identity = $RCMAIL->user->get_identity();
$sender = format_email_recipient($identity['email'], $identity['name']);
diff --git a/roundcubemail/program/steps/mail/show.inc b/roundcubemail/program/steps/mail/show.inc
index 091a7a10a..7ae0ae000 100644
--- a/roundcubemail/program/steps/mail/show.inc
+++ b/roundcubemail/program/steps/mail/show.inc
@@ -91,7 +91,7 @@ if ($_GET['_uid']) {
// check for unset disposition notification
if ($MESSAGE->headers->mdn_to &&
!$MESSAGE->headers->mdn_sent && !$MESSAGE->headers->seen &&
- $IMAP->check_permflag('MDNSENT') &&
+ ($IMAP->check_permflag('MDNSENT') || $IMAP->check_permflag('*')) &&
$mbox_name != $CONFIG['drafts_mbox'] &&
$mbox_name != $CONFIG['sent_mbox'])
{