ikvk / imap_tools

Work with email by IMAP
Apache License 2.0
717 stars 83 forks source link

Access Raw Email Data To Be Used With message_from_bytes #212

Closed unitedsoftworks closed 1 year ago

unitedsoftworks commented 1 year ago

Is there a way to access the raw email data from a message that can then be loaded into email.message_from_bytes() for forwarding?

ikvk commented 1 year ago

https://github.com/ikvk/imap_tools/blob/master/examples/email_to_file.py