Re: KeyError: 'refresh_token' error in fetchmail-oauth2

Marco Gaiarin <[email protected]> Tue, 12 Apr 2022 23:18:32 +0200
Newsgroups gmane.mail.fetchmail.user
Organization Il gaio usa sempre TIN per le liste, fallo anche tu!!!
Message-ID <[email protected]>
> Yes. Same result...

OK, i've managed to make it work.


I've followed literally:

	https://gitlab.com/fetchmail/fetchmail/-/blob/next/README.OAUTH2

(eg, the readme of fetchmail 7) and works as expected. Now i have to manage
some script to refresh the token, and download the email.


I've only a question, before put all that stuff in 'production'.


Juergen Edner say that the OAuth client created in 'Test mode' least at
maximum a week.
But if i try to publish the app, i need the Google approval process, because
the api used (eg, GMAIL API) is 'restricted'.


So, it is needed to publish the app? If yes, what is the shortest and error
prone path to get it approved?


Thanks.

-- 
  L'essenziale e` invisibile agli occhi
					(Il piccolo principe)