【发布时间】:2014-09-27 18:20:19
【问题描述】:
我可以在我的 gmail 中列出子目录。
import imaplib
user="xxxx"
password="yyyy"
con=imaplib.IMAP4_SSL('imap.gmail.com')
con.login(user,password)
con.list()
#i ommit the info which contain code that is not properly formatted as code.
有 6 个目录 Junk,Trash,Flagged,Sent,All,Important ,现在我想计算我的 Junk 中有多少个字母?
type,data=con.status('Junk','') #can't run
【问题讨论】:
标签: python-3.x gmail imaplib