python убивание почты
import poplib, email, time, datetime
import re
import commands
mails = [ ['login1@serv.com','pass1'],
['login2@serv.com','pass2']
]
server = "mail.profdis.ru"
port = "110"
for i in range(len(mails)):
box = poplib.POP3(server, port)
box.user(mails[i][0])
box.pass_(mails[i][1])
response, lst, octets = box.list()
print "DEBUG: Total %s messages in: %s " % (mails[i][0], len(lst))
print datetime.datetime.now()
for msgnum, msgsize in [i.split() for i in lst]:
(resp, lines, octets) = box.retr(msgnum)
box.dele(msgnum)
box.quit()