Some things that should always be initialized
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 23 Jul 2009 18:08:58 +0000 (12:08 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 23 Jul 2009 18:08:58 +0000 (12:08 -0600)
imp/lib/base.php

index 0fa5995..8c17c6e 100644 (file)
@@ -130,15 +130,13 @@ if (!isset($GLOBALS['imp_imap'])) {
     $GLOBALS['imp_imap'] = new IMP_Imap();
 }
 
-if ($authentication !== 'none') {
-    // Initialize some message parsing variables.
-    Horde_Mime::$brokenRFC2231 = !empty($GLOBALS['conf']['mailformat']['brokenrfc2231']);
-
-    // Set default message character set, if necessary
-    if ($def_charset = $GLOBALS['prefs']->getValue('default_msg_charset')) {
-        Horde_Mime_Part::$defaultCharset = $def_charset;
-        Horde_Mime_Headers::$defaultCharset = $def_charset;
-    }
+// Initialize some message parsing variables.
+Horde_Mime::$brokenRFC2231 = !empty($GLOBALS['conf']['mailformat']['brokenrfc2231']);
+
+// Set default message character set, if necessary
+if ($def_charset = $GLOBALS['prefs']->getValue('default_msg_charset')) {
+    Horde_Mime_Part::$defaultCharset = $def_charset;
+    Horde_Mime_Headers::$defaultCharset = $def_charset;
 }
 
 $notification = Horde_Notification::singleton();