mailgun / flanker

Python email address and Mime parsing library
http://www.mailgun.com
Apache License 2.0
1.63k stars 204 forks source link

PIP-1217: properly encode non-ascii sender headers #247

Closed Takumi2008 closed 3 years ago

Takumi2008 commented 3 years ago

Purpose

Encoding of the sender header is including encoded-words in the addr-spec. This breaks rfc standards.

These are the ONLY locations where an 'encoded-word' may appear. In particular:

  • An 'encoded-word' MUST NOT appear in any portion of an 'addr-spec'.

https://tools.ietf.org/html/rfc2047

Implementation

Add Sender to the list of _ADDRESS_HEADERS so flanker will properly encode the header.

https://mailgun.atlassian.net/browse/PIP-1217