我试图做一个简单的程序来检查并显示未读消息,但我在尝试获取主题和发件人地址时遇到问题。 对于寄件人我试过这个方法: import email
m = server.fetch([a], ['RFC822'])
#a is variable with email id
msg = email.message_from_string(m[a], ['RFC822'])
print msg['f
我最近开始使用imapclient为了从我的雅虎取回电子邮件。帐户。该计划相对简单。它如下: yahoo=imap.IMAPClient('imap.mail.yahoo.com', ssl=True)
yahoo.login('myusername', 'mypassword')# cant tell you my username and password, can I?
yahoo.se