See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| # Something in lines 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. | |
| # Right now it won't download same file name twice even if their contents are different. | |
| import email | |
| import getpass, imaplib | |
| import os | |
| import sys | |
| detach_dir = '.' |
| ALL | |
| All messages in the mailbox; the default initial key for | |
| ANDing. | |
| ANSWERED | |
| Messages with the \Answered flag set. | |
| BCC | |
| Messages that contain the specified string in the envelope | |
| structure's BCC field. |