繁体   English   中英

Python Imap_Tools获取邮件错误消息

[英]Python Imap_Tools Get Mails Error Message

我无法获取消息msg.text [使用我的邮件发送时]

它没有与此邮件一起工作:Papara bilgi@papara.com

from: Papara bilgi@papara.com
recipient: *****
date: 14 Nov 2020 15: 33
subject: 0.10 TL came to your account
posted by: gmail.com
signed: papara.com
security: standard encryption (TLS) learn more
# Make new mailbox instance.
mailbox = MailBox(IMAP_SERVER)
mailbox.login(EMAIL, PASSWORD, initial_folder='INBOX')
mailbox.folder.list()
# Print folder status.
folder_status = mailbox.folder.status('INBOX')
print(folder_status)

# Get unread emails.
user = await client.fetch_user(USER_ID)
msgs = [msg for msg in mailbox.fetch(AND(seen=False), mark_seen=True)]
# Hide content preview by replacing strings with regex.
for msg in msgs:

    # Find a match.
    message = msg.text

我无法获取消息msg.text [使用我的邮件发送时]

它没有与此邮件一起工作:Papara bilgi@papara.com

from: Papara bilgi@papara.com
recipient: *****
date: 14 Nov 2020 15: 33
subject: 0.10 TL came to your account
posted by: gmail.com
signed: papara.com
security: standard encryption (TLS) learn more
# Make new mailbox instance.
mailbox = MailBox(IMAP_SERVER)
mailbox.login(EMAIL, PASSWORD, initial_folder='INBOX')
mailbox.folder.list()
# Print folder status.
folder_status = mailbox.folder.status('INBOX')
print(folder_status)

# Get unread emails.
user = await client.fetch_user(USER_ID)
msgs = [msg for msg in mailbox.fetch(AND(seen=False), mark_seen=True)]
# Hide content preview by replacing strings with regex.
for msg in msgs:

    # Find a match.
    message = msg.text

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM