Something in line of http://stackoverflow.com/questions/348630/how-can-i-download-all-emails-with-attachments-from-gmail Make sure you have IMAP enabled in your gmail settings. Downloads zip and pdf files. Decrypts pdf files where possible. Renames file according to mail date and time
Usage - Just Run with Python . Add new email addresses and Passwords as Required. Gmail Password is required in the code.