A script to fetch attachments from imap emails. Requires imap enabled.
python3 imap_attachment_fetcher.py <config file> <output dir>
- Gmail: Requires the user to activate support for unsecure apps (https://myaccount.google.com/lesssecureapps but this will be disabled in May 2022), or adding a "app password" if you are using 2fa (https://support.google.com/accounts/answer/185833), possible to work around it with oauth2 (https://stackoverflow.com/questions/5193707/use-imaplib-and-oauth-for-connection-with-gmail). No time to figure out the tokens etc right now.