summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-10-06 18:19:04 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-10-06 18:19:04 +0000
commit7d1472aee303c8c1349638fc993216c38b23a65b (patch)
tree1677b504a97f71834af29c331119adf836b465a1 /roundcubemail/program/include
parent79f7e4878e8a90bac291f15b0c44d8f5819744cb (diff)
- Use empty envelope sender address for message disposition notifications (RFC2298.3)
git-svn-id: https://svn.roundcube.net/trunk@4055 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include')
-rw-r--r--roundcubemail/program/include/rcube_smtp.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/roundcubemail/program/include/rcube_smtp.php b/roundcubemail/program/include/rcube_smtp.php
index b45747661..61eebf3fa 100644
--- a/roundcubemail/program/include/rcube_smtp.php
+++ b/roundcubemail/program/include/rcube_smtp.php
@@ -195,6 +195,13 @@ class rcube_smtp
return false;
}
+ // RFC2298.3: remove envelope sender address
+ if (preg_match('/Content-Type: multipart\/report/', $text_headers)
+ && preg_match('/report-type=disposition-notification/', $text_headers)
+ ) {
+ $from = '';
+ }
+
// set From: address
if (PEAR::isError($this->conn->mailFrom($from)))
{