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:51:38 +01:00
parent d41bbf4a4b
commit 9cc0eaccd4

View File

@ -98,6 +98,11 @@ class Sieve extends Horde\ManageSieve
//'logger' => new \admin_mail_logger('/tmp/sieve.log'), //'logger' => new \admin_mail_logger('/tmp/sieve.log'),
); );
} }
// try "PLAIN" first, in case IMAP wrongly reports some digest, it does not (correctly) implement
if (self::$supportedAuthMethods[0] !== self::AUTH_PLAIN)
{
array_unshift(self::$supportedAuthMethods, self::AUTH_PLAIN);
}
parent::__construct($params); parent::__construct($params);
$this->displayCharset = Translation::charset(); $this->displayCharset = Translation::charset();