Update ImapClient.php

These lines were overwriting our custom plugin which sets it own auth method via a php unshift. These are already the default login methods, so please don't override what someone may have changed in a plugin.
This commit is contained in:
botsarenthuman 2024-03-09 12:33:52 -08:00 committed by GitHub
parent d498bf2b53
commit 84c8e0d08d
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;