From 331b915139e23073aa42bf28d67901383dd859ca Mon Sep 17 00:00:00 2001 From: Luke Drummond Date: Tue, 29 Oct 2019 17:11:38 +0000 Subject: Add support for AUTH LOGIN submission `go-sasl` upstream added support [1] for the obsolete [2] AUTH LOGIN method which enables aerc to send email via servers which remain common in the wild. Fixes ~sircmpwn/aerc2#263 [1] https://github.com/emersion/go-sasl/commit/61afe53d [2] https://datatracker.ietf.org/doc/draft-murchison-sasl-login/ --- commands/compose/send.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'commands') diff --git a/commands/compose/send.go b/commands/compose/send.go index 5a12428..2d994bf 100644 --- a/commands/compose/send.go +++ b/commands/compose/send.go @@ -92,6 +92,9 @@ func (Send) Execute(aerc *widgets.Aerc, args []string) error { fallthrough case "none": saslClient = nil + case "login": + password, _ := uri.User.Password() + saslClient = sasl.NewLoginClient(uri.User.Username(), password) case "plain": password, _ := uri.User.Password() saslClient = sasl.NewPlainClient("", uri.User.Username(), password) -- cgit v1.2.3