Created
October 9, 2013 21:47
-
-
Save tkhn/6909052 to your computer and use it in GitHub Desktop.
quick pop3 check
This file contains hidden or 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
| import poplib,getpass | |
| M = poplib.POP3('localhost') | |
| M.user('username') | |
| M.pass_('password') | |
| numMessages = len(M.list()[1]) | |
| for i in range(numMessages): | |
| for j in M.retr(i+1)[1]: | |
| print j |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment