Re: XOAUTH2 support
Stefan Krah <[email protected]>
| Newsgroups | gmane.mail.getmail.user |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Apr 02, 2018 at 03:54:12PM -0600, Charles Cazabon wrote: > Stefan Krah <[email protected]> wrote: > > Here are the steps in more detail: > > > > http://www.bytereef.org/howto/oauth2/getmail.html > > Thanks, Stefan. I've released getmail 5.6 with your patch included, though I > can't really test it as I don't use Gmail (and won't). I made a few minor > changes - it would be nice if the above webpage could document using this > functionality as released: > > -`gettoken.py` renamed to `getmail-gmail-xoauth-tokens` so users know what > program it belongs to and can have a hope of finding it with a web search ;) > -it was using a default path to the token data file that isn't appropriate > for software installed outside of a user's home directory. I've changed it > to explicitly require the path to the .json file as a positional argument, > i.e. password_command = ("getmail-gmail-xoauth-tokens", > "~/.getmail/gmail.json") or similar. > > Thanks for the contribution! Thank you for including the patch and the script! I like the changes and updated the above link. All works perfectly. In case anyone wonders how often the refresh tokens expire: Mine have now been valid for about three weeks and counting, so thankfully the exposure to web interactivity is limited. Stefan Krah