I made this small web-application mainly because I would rather open a simple webpage than open the Gmail application, select the desired label, open the latest email and download the attached PDF file.
Every morning the restaurant staff sends an email to subscribers with the menu for the day. Retrieving the information from the email as described above is tedious and not easily shared with colleagues or friends.
A cron entry ensures the import script runs every hour and performs the following steps
imap.google.comwith an app password
The web part of the application simply shows the latest PNG downloaded.
You can view the live version here.
Since the the application has all the menus for over 400 days some stats would be interesting.