Re: Getmail OAUTH gmail failure
Pieter van Oostrum <[email protected]> Sun, 13 Mar 2022 15:24:14 +0100
| Newsgroups | gmane.mail.getmail.user |
|---|---|
| Message-ID | <[email protected]> |
Gary Schmidt <[email protected]> writes: > On Sat, Mar 12, 2022 at 11:25 PM Pieter van Oostrum <[email protected]> > wrote: > >> Gary Schmidt <[email protected]> writes: >> >> > Getmail has been happily pulling stuff down from gmail using OAUTH for, >> oh, >> > a week or so, and it's just started doing this: >> > >> [SNIP] >> > > >> Could it be that the access-token has expired? I have looked into the code >> of getmail-gmail-xoauth-tokens and I got the impression that it doesn't do >> a refres of the token, wnen it expires. It probably will give an error >> message, but if you run getmail in the background you may not see this. >> >> Yes, I think you are right, I ran the "getmail-gmail-xoauth-tokens > --init" command again and it now works. > > Hopefully it will stick this time, I wonder what broke it? > Each access token has an expiry date/time. If it expires then it can't be used any more (obviously). Some more elaborate OAUTH2 libraries (I think in most commercial products) have some code to automatically get a new one, I think, but this one doesn't. So this one will probably also expire some day. -- Pieter van Oostrum <[email protected]> www: http://pieter.vanoostrum.org/ PGP key: [8DAE142BE17999C4]