Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: b'RFC822' #564

Open
sidamos opened this issue Nov 19, 2023 · 1 comment
Open

KeyError: b'RFC822' #564

sidamos opened this issue Nov 19, 2023 · 1 comment
Labels

Comments

@sidamos
Copy link

sidamos commented Nov 19, 2023

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.

@mjs mjs added the bug label Dec 1, 2023
@mjs
Copy link
Owner

mjs commented Dec 1, 2023

This is likely the same as #334

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants