Horde_Mime_MDN -> Horde_Mime_Mdn
authorMichael M Slusarz <slusarz@curecanti.org>
Mon, 10 Nov 2008 19:18:33 +0000 (12:18 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 10 Nov 2008 19:18:33 +0000 (12:18 -0700)
imp/lib/Compose.php
imp/lib/UI/Message.php

index 565ff00..aa96d53 100644 (file)
@@ -695,7 +695,7 @@ class IMP_Compose
         /* Add Return Receipt Headers. */
         if (!empty($opts['readreceipt']) &&
             $conf['compose']['allow_receipts']) {
-            $mdn = new Horde_Mime_MDN();
+            $mdn = new Horde_Mime_Mdn();
             $mdn->addMDNRequestHeaders($msg_headers, $barefrom);
         }
 
index b000d1c..a3007dd 100644 (file)
@@ -65,9 +65,8 @@ class IMP_UI_Message
         }
 
         /* Check to see if an MDN has been requested. */
-        $mdn = new Horde_Mime_MDN($headers);
+        $mdn = new Horde_Mime_Mdn($headers);
         if ($mdn->getMDNReturnAddr()) {
-            require_once IMP_BASE . '/lib/Maillog.php';
             $msg_id = $headers->getValue('message-id');
 
             /* See if we have already processed this message. */
@@ -82,7 +81,6 @@ class IMP_UI_Message
                         IMP_Maillog::log('mdn', $msg_id, 'displayed');
                     }
                     if ($GLOBALS['conf']['sentmail']['driver'] != 'none') {
-                        require_once IMP_BASE . '/lib/Sentmail.php';
                         $sentmail = IMP_Sentmail::factory();
                         $sentmail->log('mdn', '', $mdn->getMDNReturnAddr(), !is_a($result, 'PEAR_Error'));
                     }