[issue20083] smtplib: support for IDN (international domain names)

2014-06-12 Thread Milan Oberkirch
Changes by Milan Oberkirch : -- nosy: +jesstess, zvyn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue20083] smtplib: support for IDN (international domain names)

2013-12-28 Thread R. David Murray
R. David Murray added the comment: A call to formataddr will need to be added to quoteaddr. And yes, test cases are needed. I don't believe that the format of the HELO/EHLO message is defined by the RFC, so I don't think we can automatically parse it. I think we just have to leave the domai

[issue20083] smtplib: support for IDN (international domain names)

2013-12-28 Thread Freek Dijkstra
Freek Dijkstra added the comment: Since smtplib.quoteaddr() uses email.utils.parseaddr(), and the patch for issue 11783 fixes email.utils.parseaddr(), that patch will hopefully solve this issue as well (though a test case wouldn't hurt for sure). What I had not realised is that hostnames are a

[issue20083] smtplib: support for IDN (international domain names)

2013-12-28 Thread R. David Murray
R. David Murray added the comment: No, that issue is about the email library. So we need this one too for the equivalent enhancement to smtplib. -- resolution: duplicate -> ___ Python tracker ___

[issue20083] smtplib: support for IDN (international domain names)

2013-12-28 Thread Freek Dijkstra
Freek Dijkstra added the comment: Great to hear that a patch already exists (sorry I couldn't find in in the tracker). Feel free to close this issue as duplicate of issue 11783. (As for the u"string", I wanted to distinguish it from b'string'. I don't use it in code (since the backward compat

[issue20083] smtplib: support for IDN (international domain names)

2013-12-28 Thread R. David Murray
R. David Murray added the comment: Thanks for the suggestion. Once the issue 11783 patch is committed, smtplib can be changed to use formataddr in quoteaddr, which will result in the domain being punycoded automatically. (It's too bad I forgot about that issue, since the 3.4 beta deadline ha

[issue20083] smtplib: support for IDN (international domain names)

2013-12-27 Thread Freek Dijkstra
Freek Dijkstra added the comment: This issue deals with international domain names in email addresses (the part behind the "@"). See issue 20084 for the issue that deals with the part before the "@". -- ___ Python tracker

[issue20083] smtplib: support for IDN (international domain names)

2013-12-27 Thread Freek Dijkstra
New submission from Freek Dijkstra: smtplib has limited support for non-ASCII domain names in the From to To mail address. It only works for punycode-encoded domain names, submitted as unicode string (e.g. server.rcpt(u"u...@xn--e1afmkfd.ru"). The following two calls fail: server.rcpt(u"user@