Quantcast
Channel: feed2exec:8f5c2e6b3b1d411506db36cbc612dd907824a5c6 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