Merge pull request #1484 from botsarenthuman/patch-1

Update ImapClient.php
This commit is contained in:
Maarten 2024-03-10 18:35:59 +01:00 committed by GitHub
commit c450965cb6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -127,9 +127,6 @@ class ImapClient extends \MailSo\Net\NetClient
}
$type = '';
if ($this->Encrypted()) {
\array_unshift($oSettings->SASLMechanisms, 'PLAIN', 'LOGIN');
}
foreach ($oSettings->SASLMechanisms as $sasl_type) {
if ($this->hasCapability("AUTH={$sasl_type}") && \SnappyMail\SASL::isSupported($sasl_type)) {
$type = $sasl_type;