Преглед на файлове

Delivery notifications and Read notifications are currently treated as identical, which they are not. This patch creates a separate var for these two types of notifications. compose.php will be patched to handle this correctly when templatization (t12n) is completed.

stevetruckstuff преди 19 години
родител
ревизия
706860df49
променени са 1 файла, в които са добавени 10 реда и са изтрити 1 реда
  1. 10 1
      class/mime/Rfc822Header.class.php

+ 10 - 1
class/mime/Rfc822Header.class.php

@@ -107,9 +107,15 @@ class Rfc822Header {
      */
     var $priority = 3;
     /**
+     * Disposition notification for requesting message delivery notification (MDN)
      * @var mixed
      */
     var $dnt = '';
+    /**
+     * Delivery notification (DR)
+     * @var mixed
+     */
+    var $drnt = '';
     /**
      * @var mixed
      */
@@ -260,11 +266,14 @@ class Rfc822Header {
                 $this->references = $value;
                 break;
             case 'x-confirm-reading-to':
-            case 'return-receipt-to':
             case 'disposition-notification-to':
                 $value = $this->stripComments($value);
                 $this->dnt = $this->parseAddress($value);
                 break;
+            case 'return-receipt-to':
+                $value = $this->stripComments($value);
+                $this->drnt = $this->parseAddress($value);
+                break;
             case 'mime-version':
                 $value = $this->stripComments($value);
                 $value = str_replace(' ', '', $value);