Support AUTH=LOGIN on IMAP

This commit is contained in:
djmaze 2021-04-09 09:02:32 +02:00
parent 3d10bbface
commit 118d996d3c

View file

@ -167,6 +167,7 @@ class ImapClient extends \MailSo\Net\NetClient
// 'SCRAM-SHA-1' => 1, // !$encrypted // 'SCRAM-SHA-1' => 1, // !$encrypted
'CRAM-MD5' => $bUseAuthCramMd5IfSupported, 'CRAM-MD5' => $bUseAuthCramMd5IfSupported,
'PLAIN' => $bUseAuthPlainIfSupported, 'PLAIN' => $bUseAuthPlainIfSupported,
'LOGIN' => 1,
]; ];
foreach ($types as $sasl_type => $active) { foreach ($types as $sasl_type => $active) {
if ($active && $this->IsSupported("AUTH={$sasl_type}") && \SnappyMail\SASL::isSupported($sasl_type)) { if ($active && $this->IsSupported("AUTH={$sasl_type}") && \SnappyMail\SASL::isSupported($sasl_type)) {