Fun with Python and Gmail

In this article, I will show you how to log in to a Gmail account via IMAP and search your inbox for a mail.

Why you ask? Well, for me it was needed for one of my automation tasks for FamilyPoint application we are working on. When an ivitation is sent, we needed an automatic way of getting the invite code and register an account with that code...