IMAP OAUTHBEARER patch

Brandon Long blong at fiction.net
Mon Jul 9 20:57:08 UTC 2018


On Thu, Jun 28, 2018 at 9:15 PM Kevin J. McCarthy <kevin at 8t8.us> wrote:

> 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.
>

done

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?
>

No, that was when I was testing my error handling, I thought I'd removed it.


Brandon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mutt.org/pipermail/mutt-dev/attachments/20180709/cf0eab07/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mutt.patch-20180626.bl.imap-oauthbearer.2
Type: application/octet-stream
Size: 17522 bytes
Desc: not available
URL: <http://lists.mutt.org/pipermail/mutt-dev/attachments/20180709/cf0eab07/attachment-0001.obj>


More information about the Mutt-dev mailing list