[issue20084] smtplib: support for UTF-8 encoded headers (SMTPUTF8)

2013-12-29 Thread R. David Murray
R. David Murray added the comment: Yeah, I've been doing a lot of reading of standards while trying to hide all the messy details from users of the new API I've added to the email package. I haven't gotten to smtplib yet :) But, this stuff is messy. If you want to understand a standard, you

[issue20084] smtplib: support for UTF-8 encoded headers (SMTPUTF8)

2013-12-29 Thread Freek Dijkstra
Freek Dijkstra added the comment: > we want our message to get delivered regardless of whether or not smtputf8 is > available. This is not possible if the user specifies an (sender or recipient) email address with non-ASCII characters and the first-hop mail system does not support SMTPUTF8. S

[issue20084] smtplib: support for UTF-8 encoded headers (SMTPUTF8)

2013-12-28 Thread R. David Murray
R. David Murray added the comment: There is another possible approach, but I haven't decided yet whether or not I like it. The email package string parser could (and may for other reasons) become smart enough to convert unicode into the charset declared in the MIME part when it is parsing the

[issue20084] smtplib: support for UTF-8 encoded headers (SMTPUTF8)

2013-12-28 Thread R. David Murray
R. David Murray added the comment: Hmm. Perhaps it would be better to close that one as a duplicate of this one, since this one doesn't start out as an error report that then got converted into an enhancement request... The patch on that issue doesn't have anything to do with what the issue t

[issue20084] smtplib: support for UTF-8 encoded headers (SMTPUTF8)

2013-12-28 Thread Freek Dijkstra
Freek Dijkstra added the comment: Are you sure that issue 8489 is a duplicate? While both concern RFC 6531, the patch for 8489 only seems to add test to check how smtplib.SMTP.login() handles a username with non-ASCII characters. This issue concerns the smtplib.SMTP.rcpt() (and indirectly smtp

[issue20084] smtplib: support for UTF-8 encoded headers (SMTPUTF8)

2013-12-28 Thread R. David Murray
Changes by R. David Murray : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue20084] smtplib: support for UTF-8 encoded headers (SMTPUTF8)

2013-12-28 Thread R. David Murray
R. David Murray added the comment: Duplicate of issue 8489. -- components: +email nosy: +barry, r.david.murray resolution: -> duplicate stage: -> committed/rejected superseder: -> Support RFC 6531 in smptlib versions: +Python 3.5 ___ Python tracker

[issue20084] smtplib: support for UTF-8 encoded headers (SMTPUTF8)

2013-12-27 Thread Freek Dijkstra
New submission from Freek Dijkstra: smtplib has no support for non-ASCII user names in the From to To mail address. The following two calls fail: server.rcpt(u"όνομα@example.com"): File smtplib.py, line 332, in send s = s.encode("ascii") UnicodeEncodeError: 'ascii' codec can't encode char