aerc/worker
Julian Pidancet 9217dbeea4 imap,smtp: add XOAUTH2 support
Add XOAUTH2 authentication support for IMAP and SMTP. Although XOAUTH2
is now deprecated in favor of OAuthBearer, it is the only way to connect
to Office365 since Basic Auth is now completely removed.

Since XOAUTH2 is very similar to OAuthBearer and uses the same
configuration parameters, this is basically a copy-paste of the existing
OAuthBearer code.

However, XOAUTH2 support was removed from go-sasl library, so this
change reimports the code that was removed from go-sasl and offers it
a new home in lib/xoauth2.go. Hopefully it shouldn't be too hard to
maintain, being less than 50 SLOC.

Link: https://github.com/emersion/go-sasl/commit/7bfe0ed36a21
Implements: https://todo.sr.ht/~rjarry/aerc/78
Signed-off-by: Julian Pidancet <julian.pidancet@oracle.com>
Tested-by: Inwit <inwit@sindominio.net>
Acked-by: Tim Culverhouse <tim@timculverhouse.com>
2022-10-01 15:47:33 +02:00
..
handlers go.mod: change base git url 2021-11-05 10:21:45 +01:00
imap imap,smtp: add XOAUTH2 support 2022-10-01 15:47:33 +02:00
lib lib: parse address header fields to utf-8 2022-09-29 16:51:53 +02:00
maildir backends: send MessageInfoError on header fetching error 2022-09-25 11:54:27 +02:00
mbox backends: send MessageInfoError on header fetching error 2022-09-25 11:54:27 +02:00
notmuch notmuch: move logic for dynamic folders to backend 2022-09-29 16:52:12 +02:00
types worker: do not lock while callbacks are running 2022-09-29 20:09:17 +02:00
handler_notmuch.go format: reformat code with go 1.17 2021-12-11 23:24:08 +01:00
worker.go logging: use level-based logger functions 2022-07-23 22:52:15 +02:00
worker_enabled.go mbox: implement an mbox backend worker 2022-07-14 23:14:45 +02:00