From: Michael M Slusarz Date: Tue, 21 Dec 2010 01:37:57 +0000 (-0700) Subject: Add Horde_Mime_Mdn::MDN_HEADER X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=824cdb4e35919d2c95f0b00b6b2cfa118ade29cf;p=horde.git Add Horde_Mime_Mdn::MDN_HEADER --- diff --git a/framework/Mime/lib/Horde/Mime/Mdn.php b/framework/Mime/lib/Horde/Mime/Mdn.php index 117842804..c67a94045 100644 --- a/framework/Mime/lib/Horde/Mime/Mdn.php +++ b/framework/Mime/lib/Horde/Mime/Mdn.php @@ -15,6 +15,9 @@ */ class Horde_Mime_Mdn { + /* RFC 3798 header for requesting a MDN. */ + const MDN_HEADER = 'Disposition-Notification-To'; + /** * The Horde_Mime_Headers object. * @@ -49,7 +52,7 @@ class Horde_Mime_Mdn { /* RFC 3798 [2.1] requires the Disposition-Notification-To header * for an MDN to be created. */ - return $this->_headers->getValue('Disposition-Notification-To'); + return $this->_headers->getValue(self::MDN_HEADER); } /** @@ -248,7 +251,7 @@ class Horde_Mime_Mdn public function addMdnRequestHeaders($to) { /* This is the RFC 3798 way of requesting a receipt. */ - $this->_headers->addHeader('Disposition-Notification-To', $to); + $this->_headers->addHeader(self::MDN_HEADER, $to); } }