This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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/2/library/getpass.html | |
# 2. Make sure you have IMAP enabled in your GMail settings. | |
# https://support.google.com/mail/troubleshooter/1668960?hl=en | |
# 3. If you are using 2 step verification you may need an APP Password. | |
# 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 |