You've got a lot of good working code in the snippets but these need to be integrated together into a single application that provides all the functionality.
In this pull request I've added the skeleton for Flask and integrated your IMAP scraping code and the gravatar code.
You've got a lot of good working code in the snippets but these need to be integrated together into a single application that provides all the functionality.
In this pull request I've added the skeleton for Flask and integrated your IMAP scraping code and the gravatar code.