mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 19:49:20 +03:00
This commit is contained in:
parent
68d3ccd469
commit
35e6ab2cce
1 changed files with 7 additions and 0 deletions
|
|
@ -140,6 +140,13 @@ class ImapClient extends \MailSo\Net\NetClient
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (!$type) {
|
||||
throw new \Exception('No supported SASL mechanism found, remote server wants: '
|
||||
. \implode(', ', \array_filter($this->Capability() ?: [], function($var){
|
||||
return \str_starts_with($var, 'AUTH=');
|
||||
}))
|
||||
);
|
||||
}
|
||||
|
||||
$SASL = \SnappyMail\SASL::factory($type);
|
||||
$SASL->base64 = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue