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 r.david.murray
Recipients r.david.murray, surprising42, vstinner
Date 2009-08-19.15:10:35
SpamBayes Score 2.032407e-10
Marked as misclassified No
Message-id <1250694638.27.0.379526885682.issue6734@psf.upfronthosting.co.za>
In-reply-to
Content
See issue 1210 for background on the imaplib bytes/string issues.

A quick glance at the imaplib code leaves me confused.  _checkquote,
for example, appears to be mixing string comparisons and byte
comparisons.  Issue 1210 says imaplib _command should only quote
strings, but it does not appear at a quick glance to do any
quoting (the call to _checkquote is commented out).

It looks like the fix that would be consonant with the rest of
the code would be to convert the password to bytes using
the ASCII codec in the login method before calling _quote.

I'm adding Victor as nosy since he did the 1210 patch.
History
Date User Action Args
2009-08-19 15:10:38r.david.murraysetrecipients: + r.david.murray, vstinner, surprising42
2009-08-19 15:10:38r.david.murraysetmessageid: <1250694638.27.0.379526885682.issue6734@psf.upfronthosting.co.za>
2009-08-19 15:10:35r.david.murraylinkissue6734 messages
2009-08-19 15:10:35r.david.murraycreate