简单搭的报警邮件服务器没有UI,用FOXMAIL登录获取邮件头删除过慢,写个python脚本快速清空邮件
#!/usr/bin/python
import poplib
def main():
uugame=poplib.POP3('mail.url.com',110)
uugame.user('dicc@url.com')
uugame.pass_('dicc1234')
print uugame.stat()
mailmax=uugame.stat()[0]
for i in range(mailmax):
uugame.dele(i+1)
print uugame.stat()
uugame.quit()
if __name__=="__main__":
main()
阅读(2234) | 评论(0) | 转发(0) |