mirror of
https://git.sr.ht/~rjarry/aerc
synced 2026-03-20 11:23:41 +01:00
Do not assume "plain" is the default authentication mechanism. If no
mechanism is explicitly set in the connection URI, return an empty
string. The IMAP worker already falls back to "login" if "plain" is not
supported by the server.
Fix the "login" fallback in the IMAP worker to issue an IMAP LOGIN [1]
command instead of a SASL AUTHENTICATE [2] command. This is necessary
because the server may not advertise LOGIN as a separate AUTH
capability.
If, however, the server explicitly advertises the LOGINDISABLED
capability do not fall back to LOGIN, because [1] states:
A client implementation MUST NOT send a LOGIN command if the
LOGINDISABLED capability is advertised.
[1]: https://www.rfc-editor.org/rfc/rfc3501#section-6.2.3
[2]: https://www.rfc-editor.org/rfc/rfc3501#section-6.2.2
Fixes:
|
||
|---|---|---|
| .. | ||
| jmap.go | ||
| parse.go | ||
| sender.go | ||
| sendmail.go | ||
| smtp.go | ||