简体   繁体   中英

Python Imap_Tools Get Mails Error Message

i Cant Get Message msg.text [ When Send With My Mail Worked ]

Its Didnt Work With This Mail : 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

i Cant Get Message msg.text [ When Send With My Mail Worked ]

Its Didnt Work With This Mail : 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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