[issue13693] email.Header.Header incorrect/non-smart on international charset address fields

2012-01-02 Thread R. David Murray
R. David Murray added the comment: Actually, no, the local part cannot be in anything other than ascii (see RFC 5335, which desires to address this problem among others). Also, an encoded word cannot occur inside quotation marks. If you correct those two bugs, you can generate an RFC-valid

[issue13693] email.Header.Header incorrect/non-smart on international charset address fields

2012-01-01 Thread kxroberto
kxroberto added the comment: now I tried to render this address field header u'Name , abc@ewf, "Nameß" ' with h = email.Header.Header(continuation_ws='') h.append ... / email.Header.make_header via these chunks: [('Name <', us-ascii), ('abc\xce\xa3', utf-8), ('@xy>, abc@ewf, "', us-ascii),

[issue13693] email.Header.Header incorrect/non-smart on international charset address fields

2012-01-01 Thread kxroberto
New submission from kxroberto : the email.* package seems to over-encode international charset address fields - resulting even in display errors in the receivers reader - , when message header composition is done as recommended in http://docs.python.org/library/email.header.html Python 2.7.2