imap4命令的详细说明可参考:http://james.apache.org/server/rfclist/imap4/rfc2060.txt
imap4有个list命令可以查看邮箱中的所有文件夹,如收件箱,发件箱,草稿箱等,python代码如下:
imapclient = imaplib.IMAP4_SSL(imap_server,"993")
imapclient.login(email_user,password)
print(imapclient.list(
imap4命令的详细说明可参考:http://james.apache.org/server/rfclist/imap4/rfc2060.txt
imap4有个list命令可以查看邮箱中的所有文件夹,如收件箱,发件箱,草稿箱等,python代码如下:
imapclient = imaplib.IMAP4_SSL(imap_server,"993")
imapclient.login(email_user,password)
print(imapclient.list(