Remember my previous post about checking out only new mails from a IMAP account with Python ? The main issue with this was the absolute need for user’s password. The solution for this OAuth2… which has no decent support for Python 3. Well, it’s not exactly true. Guys behind oauthlib did quite a good job but OAuth2 is such a generic framework that using a library quickly requires you to write more code than without anyway.