Don't use IMAP username, since it may have nothing to do with auth username
authorMichael M Slusarz <slusarz@curecanti.org>
Mon, 30 Nov 2009 18:22:01 +0000 (11:22 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 30 Nov 2009 18:27:42 +0000 (11:27 -0700)
imp/lib/Prefs/Identity.php

index 8c13167..531548b 100644 (file)
@@ -231,7 +231,7 @@ class Imp_Prefs_Identity extends Horde_Prefs_Identity
 
         $val = $this->getValue('from_addr', $ident);
         if (empty($val)) {
-            $val = $GLOBALS['imp_imap']->ob()->getParam('username');
+            $val = Horde_Auth::getBareAuth();
         }
 
         if (!strstr($val, '@')) {