try "PLAIN" first, in case IMAP wrongly reports some digest, it does not (correctly) implement

This commit is contained in:
Ralf Becker 2020-02-05 10:58:34 +01:00
parent 9cc0eaccd4
commit 90c55e013d

View File

@ -99,10 +99,8 @@ class Sieve extends Horde\ManageSieve
); );
} }
// try "PLAIN" first, in case IMAP wrongly reports some digest, it does not (correctly) implement // try "PLAIN" first, in case IMAP wrongly reports some digest, it does not (correctly) implement
if (self::$supportedAuthMethods[0] !== self::AUTH_PLAIN) array_unshift($this->supportedAuthMethods, self::AUTH_PLAIN);
{
array_unshift(self::$supportedAuthMethods, self::AUTH_PLAIN);
}
parent::__construct($params); parent::__construct($params);
$this->displayCharset = Translation::charset(); $this->displayCharset = Translation::charset();