[issue11783] email parseaddr and formataddr should be IDNA aware

2017-06-02 Thread R. David Murray
R. David Murray added the comment: In other words, this was a major standards screwup and we get to deal with the consequences :( All right, since I'm hardly likely to have time to deal with it anyway, we'll just say that email isn't going to handle unicode domain names until *someone* figure

[issue11783] email parseaddr and formataddr should be IDNA aware

2017-06-02 Thread Paul Kehrer
Changes by Paul Kehrer : -- nosy: -reaperhulk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue11783] email parseaddr and formataddr should be IDNA aware

2017-06-02 Thread Paul Kehrer
Paul Kehrer added the comment: As someone who built an idna aware API for pyca/cryptography and deeply regrets it I'd like to weigh in on the side of saying that IDNA is a presentation issue and that supporting it in lower level APIs is the cause of many bugs, some of which can potentially be

[issue11783] email parseaddr and formataddr should be IDNA aware

2017-06-02 Thread Christian Heimes
Christian Heimes added the comment: Adding automatic IDNA decoding is like opening Pandora's box. uts46 is not necessarily the correct solution. The correct handling of internationalized domain names depends on multiple factors: TLD, remote application and more. You actually have to know if th

[issue11783] email parseaddr and formataddr should be IDNA aware

2017-06-02 Thread R. David Murray
R. David Murray added the comment: The email package currently forces explicit IDNA use currently. The new policies are supposed to support it automatically but I they currently don't. I'm not sure we should add it to the old interface (parseaddr/formataddr) any longer, but I don't object to

[issue11783] email parseaddr and formataddr should be IDNA aware

2017-06-02 Thread Christian Heimes
Christian Heimes added the comment: We can't replace IDNA-2003 with IDNA-2008 either. Some applications / protocols / TLDs still use IDNA-2003. I see two options, (1) make encoding configurable somehow, (2) drop implicit IDNA encoding/decoding and force applications to perform explicit IDNA.

[issue11783] email parseaddr and formataddr should be IDNA aware

2017-06-02 Thread Milan Oberkirch
Milan Oberkirch added the comment: I see your point, but I'm not fully convinced it relates to this PR directly: the code here just uses the standard interface to use an 'idna' codec. If that codec is buggy that is a different issue. If it's so buggy that using it is absolutely pointless, it s

[issue11783] email parseaddr and formataddr should be IDNA aware

2017-06-01 Thread Christian Heimes
Christian Heimes added the comment: http://www.unicode.org/reports/tr46/#IDNA2008-Section Additions. Some IDNs are invalid in IDNA2003, but valid in IDNA2008. Subtractions. Some IDNs are valid in IDNA2003, but invalid in IDNA2008. Deviations. Some IDNs are valid in both, but resolve

[issue11783] email parseaddr and formataddr should be IDNA aware

2017-06-01 Thread Christian Heimes
Christian Heimes added the comment: zvyn, thanks for your patch. However I'm sorry to say that Python stdlib's IDNA support is fundamentally broken by design. Therefore I'm against any IDNA related patches until we have addresses multiple issues with internationalized domain names. Our naive

[issue11783] email parseaddr and formataddr should be IDNA aware

2017-05-31 Thread Milan Oberkirch
Changes by Milan Oberkirch : -- pull_requests: +1979 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue11783] email parseaddr and formataddr should be IDNA aware

2014-06-11 Thread Milan Oberkirch
Milan Oberkirch added the comment: Here comes an updated patch based on 'email_address_idna.patch' without breaking smtplib (as the previous patches did). -- Added file: http://bugs.python.org/file35566/issue11783-rdm-fixed.patch ___ Python tracker

[issue11783] email parseaddr and formataddr should be IDNA aware

2014-06-11 Thread Milan Oberkirch
Changes by Milan Oberkirch : -- nosy: +jesstess Added file: http://bugs.python.org/file35565/issue11783.patch ___ Python tracker ___ _

[issue11783] email parseaddr and formataddr should be IDNA aware

2014-06-10 Thread Milan Oberkirch
Milan Oberkirch added the comment: Ping :) -- nosy: +zvyn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue11783] email parseaddr and formataddr should be IDNA aware

2014-03-12 Thread R. David Murray
R. David Murray added the comment: Final isn't out yet :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue11783] email parseaddr and formataddr should be IDNA aware

2014-03-12 Thread Freek Dijkstra
Freek Dijkstra added the comment: @r.david.murray Quote from issue20083: "You can also help me to remember to commit 11783 after the final release of 3.4.0." Ping! -- nosy: +macfreek versions: +Python 3.5 -Python 3.4 ___ Python tracker

[issue11783] email parseaddr and formataddr should be IDNA aware

2012-09-12 Thread Christian Heimes
Christian Heimes added the comment: 3.3 is in feature freeze mode. This new feature has to go into 3.4. -- nosy: +christian.heimes versions: +Python 3.4 -Python 3.3 ___ Python tracker __

[issue11783] email parseaddr and formataddr should be IDNA aware

2012-05-28 Thread R. David Murray
Changes by R. David Murray : -- assignee: r.david.murray -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue11783] email parseaddr and formataddr should be IDNA aware

2012-05-28 Thread R. David Murray
R. David Murray added the comment: I'm finally getting back around to this. Torsten, could you submit a contributor agreement, please? (http://www.python.org/psf/contrib/) And to answer the question you had about the 'still failing' test, parseaddr isn't currently doing the encoded-word dec

[issue11783] email parseaddr and formataddr should be IDNA aware

2012-05-28 Thread R. David Murray
Changes by R. David Murray : -- components: +email -Library (Lib) nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue11783] email parseaddr and formataddr should be IDNA aware

2011-04-17 Thread R. David Murray
R. David Murray added the comment: Thanks. I should be able to look at this tomorrow. You are correct about the fact that Message currently doesn't do any decoding. That is part of the design: you get the string out of Message and use the helper decoding functions (decode_header, getaddress

[issue11783] email parseaddr and formataddr should be IDNA aware

2011-04-17 Thread Torsten Becker
Torsten Becker added the comment: Hi, here is my revised patch with email.utils.getaddresses() also decoding IDNs. I decided to integrate IDN decoding in AddrlistClass.getaddress() instead of AddrlistClass.getaddrlist() since that function is one level lower and if somebody should ever all it

[issue11783] email parseaddr and formataddr should be IDNA aware

2011-04-14 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: On Thu, Apr 14, 2011 at 06:05:59PM +, Torsten Becker wrote: > :) Mumble... :) -- ___ Python tracker ___ __

[issue11783] email parseaddr and formataddr should be IDNA aware

2011-04-14 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: On Thu, Apr 14, 2011 at 06:05:59PM +, Torsten Becker wrote: > So sure .. go ahead. :) Gr Wuah, Wuuuah, Wuuh! No. Now i'm exhausted. -- ___ Python tracker

[issue11783] email parseaddr and formataddr should be IDNA aware

2011-04-14 Thread Torsten Becker
Torsten Becker added the comment: > (The word anybody made me think. > But "fix properly" ... i'm sure you cannot refer to myself. > :)) "fix properly" referred to my inferior implementation and "anybody" should probably have been worded "Steffen or David". So sure .. go ahead. :) --

[issue11783] email parseaddr and formataddr should be IDNA aware

2011-04-14 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: On Wed, Apr 13, 2011 at 09:42:22PM +, Torsten Becker wrote: > So if anybody wants to work on this before that time, > please feel free to fix it properly. :) (The word anybody made me think. But "fix properly" ... i'm sure you cannot refer to myself

[issue11783] email parseaddr and formataddr should be IDNA aware

2011-04-13 Thread R. David Murray
R. David Murray added the comment: Yes, putting the function in _parseaddr is fine. And yes, 232 looks like a good place. The alternative would be understanding the rfc822 parser, which is pretty mind bending, and of doubtful additional benefit. (At most it would save a pair of split/join

[issue11783] email parseaddr and formataddr should be IDNA aware

2011-04-13 Thread Torsten Becker
Torsten Becker added the comment: > OK, so when I went to apply this, I figured out that the patch isn't quite > right.  I've redone the doc updates, and am attaching a version of the patch > containing them. > > The issue is that the place that the IDNA decode support needs to be added > isn

[issue11783] email parseaddr and formataddr should be IDNA aware

2011-04-13 Thread R. David Murray
R. David Murray added the comment: OK, so when I went to apply this, I figured out that the patch isn't quite right. I've redone the doc updates, and am attaching a version of the patch containing them. The issue is that the place that the IDNA decode support needs to be added isn't in pars

[issue11783] email parseaddr and formataddr should be IDNA aware

2011-04-11 Thread R. David Murray
R. David Murray added the comment: Hmm. You are correct. I thought the RFC's covered this case, but apparently they don't. The email package gets used in MUA contexts, where the domain part of the address may be omitted and the MUA must fill it in before transmitting the message to the MTA

[issue11783] email parseaddr and formataddr should be IDNA aware

2011-04-11 Thread Torsten Becker
Torsten Becker added the comment: > modulo some English wording that I'll fix up when I commit it. Yeah, sorry for that, I seem to have trouble with writing good documentation. :) I'll have a look at the documents referenced by [1] to improve my writing. > The issue with the '@' is that it m

[issue11783] email parseaddr and formataddr should be IDNA aware

2011-04-11 Thread R. David Murray
R. David Murray added the comment: Patch mostly looks good to me, modulo some English wording that I'll fix up when I commit it. The issue with the '@' is that it might not be there. So you do need to check for that case (it means the domain part defaults to the 'local' domain). I should d

[issue11783] email parseaddr and formataddr should be IDNA aware

2011-04-09 Thread Torsten Becker
Torsten Becker added the comment: > Have a nice weekend! Thank you for the wishes, I hope yours is going well, too! I added IDNA awareness to formataddr() and parseaddr(), updated the docs and wrote 2 tests for it. I wasn't sure if the IDNA awareness should be optional via a argument or alwa

[issue11783] email parseaddr and formataddr should be IDNA aware

2011-04-09 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: On Fri, Apr 08, 2011 at 09:03:51PM +, Torsten Becker wrote: > I was about to look into this over the weekend, but of course I don't > want to steal your fun, Steffen. :) Toll, toll, toll!! Still cherry blossom, thanks to the weather, apple blossom

[issue11783] email parseaddr and formataddr should be IDNA aware

2011-04-08 Thread Torsten Becker
Torsten Becker added the comment: I was about to look into this over the weekend, but of course I don't want to steal your fun, Steffen. :) -- ___ Python tracker ___ ___

[issue11783] email parseaddr and formataddr should be IDNA aware

2011-04-08 Thread R. David Murray
R. David Murray added the comment: I believe Torsten is interested, but he can of course speak for himself. Just to make sure you are aware: Python has a built in idna codec, so this should be a fairly simple patch. -- ___ Python tracker

[issue11783] email parseaddr and formataddr should be IDNA aware

2011-04-08 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: If Torsten does not have time for this i'll do that next. I hate this useless Punycode (but for nameprep), so it's exactly the right thing for me to do next in 2011. Unless someone complains. I've not looked at formataddr/parseaddr, so that's a motivatio

[issue11783] email parseaddr and formataddr should be IDNA aware

2011-04-06 Thread R. David Murray
New submission from R. David Murray : The patch for issue 1690608 adds support for unicode in the realname field to formataddr. To complete the currently-workable internationalization of address specs, both parseaddr and formataddr should be made IDNA aware. It is probably a good idea to do