Re: [Python-Dev] mUTF-7 support?

2014-10-10 Thread Chris Angelico
On Fri, Oct 10, 2014 at 3:05 PM, Glenn Linderman v+pyt...@g.nevcal.com wrote: There are still lots of idiotic web sites that assume everything in front of the @ must be a letter, digit, dot, or hyphen, and even some that only permit one dot after the @... even though for 30 years or so, the

Re: [Python-Dev] mUTF-7 support?

2014-10-10 Thread Stephen J. Turnbull
R. David Murray writes: in the email address (and can't contain non-ASCII yet...we need RFC 6855 support for that, and I'm not sure *anybody* has that yet). If it's an RFC, *somebody* has it *somewhere*. :-) ___ Python-Dev mailing list

Re: [Python-Dev] mUTF-7 support?

2014-10-10 Thread Jesus Cea
On 10/10/14 04:41, R. David Murray wrote: Specifically, it is about what we might better term mailbox *folders*...that is, not what you would normally think of as the 'mailbox name', which is usually understood to be the thing before the @ in the email address (and can't contain non-ASCII

Re: [Python-Dev] mUTF-7 support?

2014-10-10 Thread Jesus Cea
I think the consensus so far is that this is a good idea. I just opened http://bugs.python.org/issue22598. Thanks for your feedback. -- Jesús Cea Avión _/_/ _/_/_/_/_/_/ j...@jcea.es - http://www.jcea.es/ _/_/_/_/ _/_/_/_/ _/_/ Twitter: @jcea

Re: [Python-Dev] mUTF-7 support?

2014-10-10 Thread Charles Cazabon
Jesus Cea j...@jcea.es wrote: On 10/10/14 02:43, Victor Stinner wrote: What is the current behaviour of imaplib in Python 3.4 with non-ASCII characters in mailbox names? It breaks. Crash burn. Oh ok. So in short, imaplib doesn't work on Python 3: Actually, it doesn't work in

[Python-Dev] mUTF-7 support?

2014-10-09 Thread Jesus Cea
I miss mUTF-7 support (as used to encode IMAP4 mailbox names) in Python, in the codecs module. As an european with a language with 27 different letters (instead of english 26), tildes, opening question marks, etc., I find it very inconvenient. This encoding is used basically only in IMAP4, I

Re: [Python-Dev] mUTF-7 support?

2014-10-09 Thread Victor Stinner
Hi, You can develop a codec and plug it into Python 3.4 right now using codecs.register(). It's difficult to decide if a codec is important enough to be added to Python. When you say IMAP4, do you mean any IMAP4 server? Do you have a list of server vendors known to use the encoding mUTF-7? Is

Re: [Python-Dev] mUTF-7 support?

2014-10-09 Thread Antoine Pitrou
On Fri, 10 Oct 2014 00:47:46 +0200 Jesus Cea j...@jcea.es wrote: I miss mUTF-7 support (as used to encode IMAP4 mailbox names) in Python, in the codecs module. As an european with a language with 27 different letters (instead of english 26), tildes, opening question marks, etc., I find it very

Re: [Python-Dev] mUTF-7 support?

2014-10-09 Thread Jesus Cea
On 10/10/14 01:08, Victor Stinner wrote: When you say IMAP4, do you mean any IMAP4 server? Do you have a list of server vendors known to use the encoding mUTF-7? All of them. IMAP4 protocol **REQUIRES** mUTF-7. UTF-8 is optional in IMAP4, and even UTF-8 capable servers have to support clients

Re: [Python-Dev] mUTF-7 support?

2014-10-09 Thread Ethan Furman
On 10/09/2014 03:47 PM, Jesus Cea wrote: [] mUTF-7 support [...] What do you think?. Could be considered for Python 3.5?. +1 -- ~Ethan~ ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev

Re: [Python-Dev] mUTF-7 support?

2014-10-09 Thread Victor Stinner
2014-10-10 1:33 GMT+02:00 Jesus Cea j...@jcea.es: The purpose of these modifications is to correct the following problems with UTF-7: If you need performances, I would be interested to see if it would be possible to reuse the C codec for UTF-7 to share as much code as possible. What is the

Re: [Python-Dev] mUTF-7 support?

2014-10-09 Thread R. David Murray
On Fri, 10 Oct 2014 01:33:58 +0200, Jesus Cea j...@jcea.es wrote: On 10/10/14 01:08, Victor Stinner wrote: When you say IMAP4, do you mean any IMAP4 server? Do you have a list of server vendors known to use the encoding mUTF-7? All of them. IMAP4 protocol **REQUIRES** mUTF-7. [...] I am

Re: [Python-Dev] mUTF-7 support?

2014-10-09 Thread Jesus Cea
On 10/10/14 02:00, Victor Stinner wrote: 2014-10-10 1:33 GMT+02:00 Jesus Cea j...@jcea.es: The purpose of these modifications is to correct the following problems with UTF-7: If you need performances, I would be interested to see if it would be possible to reuse the C codec for UTF-7 to

Re: [Python-Dev] mUTF-7 support?

2014-10-09 Thread Victor Stinner
2014-10-10 2:34 GMT+02:00 Jesus Cea j...@jcea.es: What is the current behaviour of imaplib in Python 3.4 with non-ASCII characters in mailbox names? It breaks. Crash burn. Oh ok. So in short, imaplib doesn't work on Python 3: it's a bug and it must be fixed. I agree that a new codec is good

Re: [Python-Dev] mUTF-7 support?

2014-10-09 Thread Jesus Cea
On 10/10/14 02:43, Victor Stinner wrote: 2014-10-10 2:34 GMT+02:00 Jesus Cea j...@jcea.es: What is the current behaviour of imaplib in Python 3.4 with non-ASCII characters in mailbox names? It breaks. Crash burn. Oh ok. So in short, imaplib doesn't work on Python 3: it's a bug and it

Re: [Python-Dev] mUTF-7 support?

2014-10-09 Thread Victor Stinner
2014-10-10 2:52 GMT+02:00 Jesus Cea j...@jcea.es: Yes, Python 2 is broken, the real deal is Python 3? :). For Unicode, my favorite answer is it's time to upgrade! Python 3 has a much better Unicode support. and not fix the issue on Python 2.7. I don't want to open the can of worm unicode in

Re: [Python-Dev] mUTF-7 support?

2014-10-09 Thread Dan Stromberg
On Thu, Oct 9, 2014 at 3:47 PM, Jesus Cea j...@jcea.es wrote: I miss mUTF-7 support (as used to encode IMAP4 mailbox names) in Python, in the codecs module. As an european with a language with 27 different letters (instead of english 26), tildes, opening question marks, etc., I find it very

Re: [Python-Dev] mUTF-7 support?

2014-10-09 Thread Antoine Pitrou
On Thu, 9 Oct 2014 19:12:29 -0700 Dan Stromberg drsali...@gmail.com wrote: On Thu, Oct 9, 2014 at 3:47 PM, Jesus Cea j...@jcea.es wrote: I miss mUTF-7 support (as used to encode IMAP4 mailbox names) in Python, in the codecs module. As an european with a language with 27 different letters

Re: [Python-Dev] mUTF-7 support?

2014-10-09 Thread Chris Angelico
On Fri, Oct 10, 2014 at 11:52 AM, Jesus Cea j...@jcea.es wrote: Actually, it doesn't work in Python 2 either. It never supported international mailbox names. Should I dare to suggest to port this to 2.7, since 2.7 is special and will be supported for a long time?. Or maybe this is something

Re: [Python-Dev] mUTF-7 support?

2014-10-09 Thread R. David Murray
On Fri, 10 Oct 2014 04:28:21 +0200, Antoine Pitrou solip...@pitrou.net wrote: On Thu, 9 Oct 2014 19:12:29 -0700 Dan Stromberg drsali...@gmail.com wrote: On Thu, Oct 9, 2014 at 3:47 PM, Jesus Cea j...@jcea.es wrote: I miss mUTF-7 support (as used to encode IMAP4 mailbox names) in Python,

Re: [Python-Dev] mUTF-7 support?

2014-10-09 Thread Antoine Pitrou
On Fri, 10 Oct 2014 13:36:49 +1100 Chris Angelico ros...@gmail.com wrote: On Fri, Oct 10, 2014 at 11:52 AM, Jesus Cea j...@jcea.es wrote: Actually, it doesn't work in Python 2 either. It never supported international mailbox names. Should I dare to suggest to port this to 2.7, since 2.7

Re: [Python-Dev] mUTF-7 support?

2014-10-09 Thread Glenn Linderman
On 10/9/2014 7:41 PM, R. David Murray wrote: Specifically, it is about what we might better term mailbox *folders*...that is, not what you would normally think of as the 'mailbox name', which is usually understood to be the thing before the @ in the email address (and can't contain non-ASCII