python-imaplib Trying to automate mass email deletion, but for now just a few tests are here The config connection file '~/.pymotw' has to be like that: [server] hostname = yourHost #gmail is 'imap.gmail.com' [account] username = yourEmail password = yourPassw