Skip to content

Instantly share code, notes, and snippets.

@tkhn
Created October 9, 2013 21:47
Show Gist options
  • Select an option

  • Save tkhn/6909052 to your computer and use it in GitHub Desktop.

Select an option

Save tkhn/6909052 to your computer and use it in GitHub Desktop.
quick pop3 check
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