diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-10-06 18:19:04 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-10-06 18:19:04 +0000 |
| commit | 7d1472aee303c8c1349638fc993216c38b23a65b (patch) | |
| tree | 1677b504a97f71834af29c331119adf836b465a1 /roundcubemail/program/include/rcube_smtp.php | |
| parent | 79f7e4878e8a90bac291f15b0c44d8f5819744cb (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/rcube_smtp.php')
| -rw-r--r-- | roundcubemail/program/include/rcube_smtp.php | 7 |
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))) { |
