[issue5305] imaplib should support international mailbox names

2018-04-21 Thread Matej Cepl

Change by Matej Cepl :


--
nosy: +mcepl

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5305] imaplib should support international mailbox names

2018-04-06 Thread Alexander Harkness

Alexander Harkness  added the comment:

ssu

--
nosy: +bearbin

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5305] imaplib should support international mailbox names

2015-08-06 Thread Jesús Cea Avión

Jesús Cea Avión added the comment:

Ping.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5305
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5305] imaplib should support international mailbox names

2015-07-22 Thread Александр Цамутали

Changes by Александр Цамутали asts...@yandex.ru:


--
type:  - enhancement

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5305
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5305] imaplib should support international mailbox names

2015-04-21 Thread Jean-Paul Calderone

Changes by Jean-Paul Calderone jean-p...@clusterhq.com:


--
nosy:  -exarkun

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5305
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5305] imaplib should support international mailbox names

2014-10-10 Thread Jesús Cea Avión

Jesús Cea Avión added the comment:

First step is to provide mUTF-7 in Python 3.5. Then we can try to update 
imaplib. I am specially worried about the points cfraire raises in 
http://bugs.python.org/issue5305#msg151859. Lets see.

--
dependencies: +IMAP4 UTF-7 support

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5305
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5305] imaplib should support international mailbox names

2014-10-10 Thread C Fraire

C Fraire added the comment:

 the twisted imap API is problematic for imaplib because twisted seems to 
 expect its arguments to already be Python unicode.

Could you elaborate on this?  As far as I can tell, it works fine:

I wasn't addressing encode/decode specifically. Both twisted and PloneMailList 
offer implementations with same encoding name, imap4-utf-7.

I meant that it's difficult for the twisted API to inform what might be done 
for imaplib since twisted takes full unicode but imaplib expects only 
unicode-ASCII subset.

The first part of jamesh's original issue is just encoder/decoder, so either 
twisted or PloneMailList would seem to suffice. I was addressing jamesh's 
second part whether optionally if imaplib would perform the encoding and 
decoding at the appropriate points.

Point 2 of my response seems the more difficult. imaplib list and lsub return 
str instances with ASCII + utf-7 stuffed together. (twisted avoids this by 
returning tuples of unicode, if I understand correctly).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5305
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5305] imaplib should support international mailbox names

2014-10-09 Thread Jean-Paul Calderone

Jean-Paul Calderone added the comment:

 the twisted imap API is problematic for imaplib because twisted seems to 
 expect its arguments to already be Python unicode.

Could you elaborate on this?  As far as I can tell, it works fine:

 import twisted.mail.imap4
 print uHello, \N{SNOWMAN}.encode('imap4-utf-7')
Hello, JgM-
 print b'Hello, JgM-'.decode('imap4-utf-7')
Hello, ☃
 

What would you expect to work differently?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5305
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5305] imaplib should support international mailbox names

2014-10-09 Thread Hiroaki Kawai

Hiroaki Kawai added the comment:

 the twisted imap API is problematic for imaplib because twisted seems to 
 expect its arguments to already be Python unicode.
 Could you elaborate on this?  As far as I can tell, it works fine:

twisted imap4-utf-7 seems to be improved in this 2 years. :-)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5305
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5305] imaplib should support international mailbox names

2014-03-29 Thread Jesús Cea Avión

Jesús Cea Avión added the comment:

Or a new encoder/decoder in codecs module.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5305
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5305] imaplib should support international mailbox names

2014-03-28 Thread Jesús Cea Avión

Changes by Jesús Cea Avión j...@jcea.es:


--
nosy: +jcea
versions: +Python 3.5 -Python 2.7, Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5305
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5305] imaplib should support international mailbox names

2014-03-28 Thread Jesús Cea Avión

Jesús Cea Avión added the comment:

Being bitten by this today.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5305
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5305] imaplib should support international mailbox names

2014-03-28 Thread Jesús Cea Avión

Jesús Cea Avión added the comment:

Point 2 of cfraire message is a big issue.

What about leaving this problem to the library user simply providing two helper 
functions in the module to encode/decode mUTF-7?.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5305
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5305] imaplib should support international mailbox names

2013-12-12 Thread Daniël van Eeden

Changes by Daniël van Eeden launch...@myname.nl:


--
nosy: +dveeden

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5305
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5305] imaplib should support international mailbox names

2012-01-23 Thread C Fraire

C Fraire cfra...@yahoo.com added the comment:

I've used the PloneMailList implementation in another project. It works well to 
add 'imap4-utf-7' as codec.

The twisted imap implementation seems to have been updated to properly support 
non-printable ASCII, but the twisted imap API is problematic for imaplib 
because twisted seems to expect its arguments to already be Python unicode.

So can we be specific about what kind of API change would satisfy this issue:

1) a number of API methods take one or more mailbox arguments. Of course, 
imaplib currently expects these to be ASCII, but what kind of argument should 
the methods take? UTF? Unicode? So would the library need a class property to 
describe an optional specified input encoding? Would it be expected to take 
Python unicode?

2) some methods, such as list and lsub, return mailbox names UTF-7 encoded and 
embedded in larger ASCII strings. Would imaplib be expected to alter the 
contents of these large strings and transform them into another other encoding 
(when a switch as described in 1) is active)?

--
nosy: +cfraire

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5305
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5305] imaplib should support international mailbox names

2011-11-23 Thread Babak M

Babak M babak...@gmail.com added the comment:

There's a working implementation of this in PloneMailList.
http://svn.plone.org/svn/collective/mxmImapClient/trunk/imapUTF7.py

--
nosy: +BabakM

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5305
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5305] imaplib should support international mailbox names

2011-03-24 Thread Александр Цамутали

Александр Цамутали asts...@yandex.ru added the comment:

So noone is working on this issue ATM?

--
nosy: +astsmtl

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5305
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5305] imaplib should support international mailbox names

2011-01-27 Thread Hiroaki Kawai

Hiroaki Kawai hiroaki.ka...@gmail.com added the comment:

twisted's code does not work good for \t, \r, \n, those characters must 
encoded in modified base64 form according to RFC 3501.

--
nosy: +Hiroaki.Kawai

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5305
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5305] imaplib should support international mailbox names

2009-02-26 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

 The IMAP4rev1 specification allows for non-ASCII mailbox 
 names using a modified UTF-7 encoding

UTF-7 already sounds like something horrible for me, but a *modified* 
UTF-7 encoding is something a little bit more strange for me. Why not 
reusing directly UTF-7.

(sorry, it's an off topic dummy question)

--
nosy: +haypo

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5305
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5305] imaplib should support international mailbox names

2009-02-26 Thread Jean-Paul Calderone

Jean-Paul Calderone exar...@divmod.com added the comment:

 UTF-7 already sounds like something horrible for me, but a *modified*
 UTF-7 encoding is something a little bit more strange for me. Why not
 reusing directly UTF-7.

UTF-7 wasn't horrible for its time, but its time has very likely passed.
 Alas, changing a standard like IMAP4 is so difficult, this mistake will
be with us for a long time to come.

As for why IMAP4 uses a modified form of UTF-7, the RFC addresses this:

   The purpose of these modifications is to correct the following
   problems with UTF-7:

  1) UTF-7 uses the + character for shifting; this conflicts with
 the common use of + in mailbox names, in particular USENET
 newsgroup names.

  2) UTF-7's encoding is BASE64 which uses the / character; this
 conflicts with the use of / as a popular hierarchy delimiter.

  3) UTF-7 prohibits the unencoded usage of \; this conflicts with
 the use of \ as a popular hierarchy delimiter.

  4) UTF-7 prohibits the unencoded usage of ~; this conflicts with
 the use of ~ in some servers as a home directory indicator.

  5) UTF-7 permits multiple alternate forms to represent the same
 string; in particular, printable US-ASCII characters can be
 represented in encoded form.

Whether you are convinced by these arguments or not is, of course,
entirely up to you.  Note also, however, that the modified UTF-7 is not
mandated by the RFC:

   By convention, international mailbox names in IMAP4rev1 are specified
   using a modified version of the UTF-7 encoding described in [UTF-7].
   Modified UTF-7 may also be usable in servers that implement an
   earlier version of this protocol.

However, it seems stupid to say that the choice if encoding is only a
convention since there is no other way to communicate the choice of
encoding between client and server.

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5305
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5305] imaplib should support international mailbox names

2009-02-20 Thread Jean-Paul Calderone

Jean-Paul Calderone exar...@divmod.com added the comment:

IMAP4 UTF-7 is implemented in Twisted -
http://twistedmatrix.com/trac/browser/trunk/twisted/mail/imap4.py#L5385,
http://twistedmatrix.com/trac/browser/trunk/twisted/mail/test/test_imap.py#L58.
 Feel free to re-use any of that code that would be helpful.

--
nosy: +exarkun

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5305
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5305] imaplib should support international mailbox names

2009-02-20 Thread Martin v. Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

I don't have a good understanding of imaplib; if you think it's
appropriate to provide the conversion through two functions, I trust you.

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5305
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5305] imaplib should support international mailbox names

2009-02-19 Thread James Henstridge

James Henstridge ja...@jamesh.id.au added the comment:

I'll have a go at implementing the algorithm.  It looks like the
modifications to UTF-7 are large enough that you can't do a search and
replace on the output of the existing UTF-7 codec, so it'll probably
require new code.

Would String2Mailbox and Mailbox2String utility functions be appropriate
here?

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5305
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5305] imaplib should support international mailbox names

2009-02-17 Thread James Henstridge

New submission from James Henstridge ja...@jamesh.id.au:

The IMAP4rev1 specification allows for non-ASCII mailbox names using a
modified UTF-7 encoding (section 5.1.3 of RFC 2060 or 3501).  However,
the imaplib routines taking a mailbox name just pass the string straight
through without any encoding.

It would be useful if Python provided an encoder/decoder for the
modified UTF-7 encoding, and optionally if imaplib would perform the
encoding and decoding at the appropriate points.

--
components: Library (Lib)
messages: 82408
nosy: jamesh
severity: normal
status: open
title: imaplib should support international mailbox names
versions: Python 2.7, Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5305
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com