IMAP OAUTHBEARER patch

Kevin J. McCarthy kevin at 8t8.us
Fri Jun 29 04:15:14 UTC 2018


On Tue, Jun 26, 2018 at 05:02:11PM -0700, Brandon Long wrote:
> Ok, this patch updates the current head to have
> (imap|pop|smtp)_oauth_refresh_command, consolidates the code for executing
> the commands and generating the oauthbearer sasl token, and adds support or
> oauthbearer for pop.

Hi Brandon, I have two comments:

1) In mutt_account_getoauthbearer(), mutt_read_line() can return NULL,
so check for that too.


2) In the second patch:

--- a/imap/auth_oauth.c
+++ b/imap/auth_oauth.c
@@ -50,7 +50,7 @@ imap_auth_res_t imap_auth_oauth (IMAP_DATA* idata, const char* method)
 
   ilen = strlen (oauthbearer) + 30;
   ibuf = safe_malloc (ilen);
-  snprintf (ibuf, ilen, "AUTHENTICATE OAUTHBEARER %s", oauthbearer);
+  snprintf (ibuf, ilen, "AUTHENTICATE OAUTHBEARER f%s", oauthbearer);
 

Was the added "f" prefix intentional?

-- 
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.mutt.org/pipermail/mutt-dev/attachments/20180628/0ae61bbf/attachment-0001.asc>


More information about the Mutt-dev mailing list