summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-02-20 22:47:06 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-02-20 22:47:06 +0000
commit60f2838ed6b3fb6e10406e64c0f7ed316ff3a477 (patch)
treefe157ad8f95e9f68413c81528d0cdcf40a80c157 /roundcubemail/program/steps
parent41872042af5ed67ec87641acc863e16e0bb7e35a (diff)
Remove MDN headers before saving in sent folder + fix wrong variale name
git-svn-id: https://svn.roundcube.net/trunk@1125 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
-rw-r--r--roundcubemail/program/steps/mail/func.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc
index f14c532b4..b1ce4bd4e 100644
--- a/roundcubemail/program/steps/mail/func.inc
+++ b/roundcubemail/program/steps/mail/func.inc
@@ -1435,6 +1435,8 @@ function rcmail_deliver_message(&$message, $from, $mailto)
$sent = mail($headers_enc['To'], $headers_enc['Subject'], $msg_body, $header_str, "-f$from");
}
+ if ($sent) // remove MDN headers after sending
+ unset($headers['Return-Receipt-To'], $headers['Disposition-Notification-To']);
$message->_headers = array();
$message->headers($headers);