From 824cdb4e35919d2c95f0b00b6b2cfa118ade29cf Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 20 Dec 2010 18:37:57 -0700 Subject: [PATCH] Add Horde_Mime_Mdn::MDN_HEADER --- framework/Mime/lib/Horde/Mime/Mdn.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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); } } -- 2.11.0