summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps/mail/show.inc
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-02-04 17:39:06 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-02-04 17:39:06 +0000
commit0da3aa1eb3b128e041ba41abb0a05395fdcffac7 (patch)
tree816c14944a1d6d631b6a7313663be1faff1fc20e /roundcubemail/program/steps/mail/show.inc
parentcfdd2a89837edf8b9e15247f7b4fd3309782a821 (diff)
Make sending of read receipts configurable
git-svn-id: https://svn.roundcube.net/trunk@1013 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/mail/show.inc')
-rw-r--r--roundcubemail/program/steps/mail/show.inc15
1 files changed, 12 insertions, 3 deletions
diff --git a/roundcubemail/program/steps/mail/show.inc b/roundcubemail/program/steps/mail/show.inc
index e6aa19270..2f0fb015d 100644
--- a/roundcubemail/program/steps/mail/show.inc
+++ b/roundcubemail/program/steps/mail/show.inc
@@ -5,7 +5,7 @@
| program/steps/mail/show.inc |
| |
| This file is part of the RoundCube Webmail client |
- | Copyright (C) 2005-2007, RoundCube Dev. - Switzerland |
+ | Copyright (C) 2005-2008, RoundCube Dev. - Switzerland |
| Licensed under the GNU GPL |
| |
| PURPOSE: |
@@ -20,6 +20,7 @@
*/
require_once('Mail/mimeDecode.php');
+require_once('lib/rc_mail_mime.inc');
$PRINT_MODE = $_action=='print' ? TRUE : FALSE;
@@ -76,8 +77,16 @@ if ($_GET['_uid'])
// check for unset disposition notification
if ($MESSAGE['headers']->mdn_to && !$MESSAGE['headers']->mdn_sent && $IMAP->get_mailbox_name() != $CONFIG['drafts_mbox'])
{
- rcube_add_label('mdnrequest');
- $OUTPUT->set_env('mdn_request', true);
+ if (intval($CONFIG['mdn_requests']) === 1)
+ {
+ if (rcmail_send_mdn($MESSAGE['UID']))
+ $OUTPUT->show_message('receiptsent', 'confirmation');
+ }
+ else if (empty($CONFIG['mdn_requests']))
+ {
+ rcube_add_label('mdnrequest');
+ $OUTPUT->set_env('mdn_request', true);
+ }
}