◐ Shell
clean mode source ↗

Message 113160 - Python tracker

Besides, not only the header value, but also the header name can only be printable ascii characters according to RFC2822:

"A field name MUST be composed of printable US-ASCII characters (i.e., characters that have values between 33 and 126, inclusive), except   colon."

But the msg object's __getitem__() seems to accept all ascii characters.