[OT] fetchmail replacement supporting Oauth
lilydjwg
lilydjwg at gmail.com
Thu May 5 03:01:21 UTC 2022
On Wed, May 04, 2022 at 08:49:42AM -0600, Akkana Peck wrote:
> lilydjwg writes:
> > I've switched to OAuth because I don't want to enable 2FA (which means
> > if I lost all my devices, I would lose access to my Google account).
>
> How did you get your OAuth tokens? I tried following
> https://github.com/google/gmail-oauth2-tools/wiki/OAuth2DotPyRunThrough
> and
> https://github.com/tenllado/dotfiles/tree/master/config/msmtp
> but when I got to the step of running their oauth2.py python2 script
> with --generate_oauth2_token and clicking through all the "THIS IS
> DANGEROUS, ARE YOU SURE YOU TRUST THIS APP AND DON'T WANT TO
> CANCEL?" screens, I always got a HTTP Error 401: Unauthorized. I
> have my app defined, listed myself as a test user and added the
> https://mail.google.com/ scope.
>
> Is there another way of getting the tokens besides the python 2
> script that hasn't been updated since 2018?
I'm using the "getmail-gmail-xoauth-tokens" program from getmail6. Usage
is described here:
https://github.com/getmail6/getmail6/blob/master/docs/getmailrc-examples#L291
It works with offlineimap and msmtp too. And it doesn't depend on other
part of getmail6 so you can grab this script without installing the
whole getmail6 if you don't use it.
> I know, not strictly a mutt question, but any mutt user who uses
> gmail will have to deal with this before the end of the month.
>
> ...Akkana
--
Best regards,
lilydjwg
More information about the Mutt-users
mailing list