/gmailScrap

scrap all g-mails, body and attachments

Primary LanguagePythonMIT LicenseMIT

Download ALL attachments from GMail

  1. Script needs to be run via console not in an IDE, getpass.getpass() will fail otherwise https://docs.python.org/3/library/getpass.html
  2. IMAP must be enabled in GMail settings https://support.google.com/mail/troubleshooter/1668960?hl=en
  3. need an APP Password if using 2 step verification https://support.google.com/accounts/answer/185833
  4. Reference information for GMail IMAP extension can be found here https://developers.google.com/gmail/imap_extensions

To add:

-download each gmail to a separate folder [named by the subject]
-copy body of the gmail to .txt and parse info