Quantcast
Channel: feed2exec:0468b0f013c169566ebd398aeeb6b63f08dcccc0 commits
Viewing all articles
Browse latest Browse all 40

properly encode From headers

$
0
0
the default From header encoding is dumb: it encodes the *whole* string, including the address itself, which breaks a bunch of email clients, including gmail, notmuch and mutt. instead, we encode the address and name separately so that the address doesn't get encoded so clients can parse it properly. also, this should encode the name only if necessary. taken from http://mg.pov.lt/blog/unicode-emails-in-python.html

Viewing all articles
Browse latest Browse all 40

Trending Articles