Re: getmail-gmail-xoauth-tokens patch 1

Scott Robbins <[email protected]> Thu, 5 May 2022 11:01:39 -0400
Newsgroups gmane.mail.getmail.user
Message-ID <[email protected]>
On Wed, May 04, 2022 at 08:49:25PM -0400, Tyrel McQueen wrote:
> Folks,
> 
> This is the first of two potential patches for the oauth2 support script of
> getmail. If one creates an OAuth2 client_id that is of type webapp, then
> two additional parameters need to be passed in order to receive not just an
> access_token, but also a refresh_token. The patch below accomplishes that.


I've found that all I had to do was enable 2FA on the google account I use
for getmail, and just had to do it the first time I set it up on the
machine. I then also had to make an app password for getmail, which I also
had to use with msmtp.

I put up a little page about it at
https://srobb.net/gmailgetmail.html


-- 
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6