Re: XOAUTH2 support
Charles Cazabon <[email protected]>
| Newsgroups | gmane.mail.getmail.user |
|---|---|
| Message-ID | <[email protected]> |
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! If anyone extends this to other IMAP providers, I'd be happy to include the results in getmail if it requires as few changes as this did. Charles -- ----------------------------------------------------------------------- Charles Cazabon GPL'ed software available at: http://pyropus.ca/software/ -----------------------------------------------------------------------