imapclient icon indicating copy to clipboard operation
imapclient copied to clipboard

KeyError: b'RFC822'

Open sidamos opened this issue 2 years ago • 1 comments

This code threw an unexpected exception: messages = fetchServer.search("UNSEEN") for uid, message_data in fetchServer.fetch(messages, "RFC822").items(): email_message = email.message_from_bytes(message_data[b"RFC822"]) ->

Traceback (most recent call last): File "/work2/imap-notify/./imap-notify.py", line 68, in email_message = email.message_from_bytes(message_data[b"RFC822"]) ~~~~~~~~~~~~^^^^^^^^^^^ KeyError: b'RFC822'

I cannot reproduce it with the same mails.

sidamos avatar Nov 19 '23 09:11 sidamos

This is likely the same as #334

mjs avatar Dec 01 '23 19:12 mjs