Python script to download email attachments and replace with note

Job ID: 34117600

Budget: $10 – $30 USD

* login into Gmail account (imap)
* check emails for attachments
* if attachment size is bigger than limit:
** save attachment in file system under certain name (find a good naming convention to avoid collisions, e.g. sender_name_date_filenameOfAttachment)
** if "deleteAttachments==True": # variable set at top
*** delete attachment from email
*** add note to email (as attachment) specifying under which filename attachment was saved


* Keep track of emails that have been processed in a local file
* if "restartScan!=True" skip emails that have already been processed

Relevant links:
* https://www.pythonpool.com/imap-python/ (basic framework for accessing attachments)

Testing:
* set up a random GMail account and send 10 emails with attachments back and forth.
Related categories: Python Email Handling IMAP