try LOGIN first for login to IMAP Server as prefered login method. only use best auth method, if LOGIN is not available: Reason-> some servers do report auth methods that they do not truly support (cram-md5)

This commit is contained in:
Klaus Leithoff 2011-06-15 13:04:36 +00:00
parent 4fef26e926
commit ef3cbeaac8

View File

@ -524,7 +524,7 @@ class defaultimap extends Net_IMAP
if ($this->debug) error_log(__METHOD__."No username supplied.".function_backtrace());
return false;
}
if( PEAR::isError($status = parent::login($username, $password, TRUE, !$this->isAdminConnection)) ) {
if( PEAR::isError($status = parent::login($username, $password, 'LOGIN', !$this->isAdminConnection)) ) {
if ($this->debug) error_log(__METHOD__."Could not log in with ->".$username.":".$password."<-");
if ($this->debug) error_log(__METHOD__."Status login:".array2string($status->message));
//error_log(__METHOD__.'Called from:'.function_backtrace());