Sort out DSN functionality
[squirrelmail.git] / class / deliver / Deliver.class.php
index e3a4cd18e83500709eb5ece2528d21f81c46f7d0..403b88f3c785126c55a8d540062a3e8237bf1789 100644 (file)
@@ -741,6 +741,10 @@ class Deliver {
             /* RFC 2298 */
             $header[] = 'Disposition-Notification-To: '.$dnt. $rn;
         }
+        if ($rfc822_header->dsn) {
+            $dsn = $rfc822_header->getAddr_s('dsn');
+            $header[] = 'Return-Receipt-To: '.$dsn. $rn;
+        }
         if ($rfc822_header->priority) {
             switch($rfc822_header->priority)
             {