This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author anadelonbrin
Recipients
Date 2003-11-20.04:01:01
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Python 2.3.2 and also 18/11/03 CVS; Windows XP.

If _checkquote is passed the empty string, it raises and 
exception (because it tries to get an index into the 
string).  The easiest way to reproduce this is:

>>> import imaplib
>>> i = imaplib.IMAP4('server.name')
>>> i.login("username", "password")
>>> i.select("")
[Traceback here]

While it's unlikely that there's a folder called "", this 
should really give the 'invalid folder name' error, rather 
than an exception.

The attached diff fixes this, simply by checking for the 
empty string in _checkquote.
History
Date User Action Args
2007-08-23 14:18:20adminlinkissue845560 messages
2007-08-23 14:18:20admincreate