这是密码
import imaplib
mail.select('"[Gmail]/Sent Mail"')
typ,messageIds = mail.search(None,"SEEN")
messageIdsString = str(messageIds[0],encoding='utf-8')
listofmessages = messageIdsString.split(" ")
nbr = len(listofmessages)
if len(listofmessages)== 0:
print("You Have No Mails On Inbox")
elif len(listofmessages)== 0:
print("You Have No Mails On Spam")
else :
print("You Have ",nbr,"New Emails Inbox")
如果有人能帮忙,我不知道该怎么办
暂无答案!
目前还没有任何答案,快来回答吧!