[PLUG] Python and utf-8 email headers...

Michael Christopher Robinson michael at robinson-west.com
Sun Jul 21 23:44:00 UTC 2019


I assume that I need the following Python code:

subject_line=???
from email.header import decode_header
decode_header(subject_line)

Note that I am wanting to read an mbox file or access the imap server
locally.  The ??? is the subject line utf-8 encoded... so what do I
need there?

     -- Michael C. Robinson




More information about the PLUG mailing list