aerc/commands/compose
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
..
abort.go tabs: rename SelectedTab to SelectedTabContent 2022-07-23 22:00:21 +02:00
attach-key.go tabs: rename SelectedTab to SelectedTabContent 2022-07-23 22:00:21 +02:00
attach.go attach: enable path globbing 2022-08-30 22:23:24 +02:00
cc-bcc.go tabs: rename SelectedTab to SelectedTabContent 2022-07-23 22:00:21 +02:00
compose.go lint: apply new formatting rules 2022-08-01 10:44:52 +02:00
detach.go tabs: rename SelectedTab to SelectedTabContent 2022-07-23 22:00:21 +02:00
edit.go tabs: rename SelectedTab to SelectedTabContent 2022-07-23 22:00:21 +02:00
encrypt.go tabs: rename SelectedTab to SelectedTabContent 2022-07-23 22:00:21 +02:00
header.go lint: homogenize operations and minor fixes (gocritic) 2022-08-04 21:58:01 +02:00
next-field.go tabs: rename SelectedTab to SelectedTabContent 2022-07-23 22:00:21 +02:00
postpone.go logging: use level-based logger functions 2022-07-23 22:52:15 +02:00
send.go imap,smtp: add XOAUTH2 support 2022-10-01 15:47:33 +02:00
sign.go tabs: rename SelectedTab to SelectedTabContent 2022-07-23 22:00:21 +02:00
switch.go switch: update status line 2022-09-20 21:05:15 +02:00