[issue917120] imaplib: incorrect quoting in commands

2021-12-18 Thread Charalampos Tsimpouris
Charalampos Tsimpouris added the comment: As far as I can see I have the same problem from a different perspective. Selecting folders that include a space result in broken use of API, as server responds with "folder is not dound" (which is valid as part of the folder name is never sent). To

[issue917120] imaplib: incorrect quoting in commands

2015-04-13 Thread Maciej Szulik
Changes by Maciej Szulik : -- nosy: +maciej.szulik ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue917120] imaplib: incorrect quoting in commands

2015-03-16 Thread R. David Murray
Changes by R. David Murray : -- nosy: +bjshan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue917120] imaplib: incorrect quoting in commands

2014-02-03 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue917120] imaplib: incorrect quoting in commands

2013-09-06 Thread Daniël van Eeden
Changes by Daniël van Eeden : -- nosy: +dveeden ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue917120] imaplib: incorrect quoting in commands

2013-02-12 Thread Mauro Cicognini
Mauro Cicognini added the comment: David, that is exactly what I meant: functionality for Python 3 is less than the functionality available for Python 2, and behavior is completely out of sync with the documentation. Bug or not, and independent of the root cause (I don't know if anyone will ev

[issue917120] imaplib: incorrect quoting in commands

2013-02-12 Thread R. David Murray
R. David Murray added the comment: I don't understand what you mean by removing dead code leading to loss of functionality, unless you mean that the removal of the call to the quoting code in Python3 led to a loss of functionality relative to Python2, in which case I agree. It also led to the

[issue917120] imaplib: incorrect quoting in commands

2013-02-12 Thread Mauro Cicognini
Mauro Cicognini added the comment: The removal of the dead code causes imaplib under py3k to lose the quoting functionality that is described in documentation (except for passwords, that do get always quoted as stated). I submit that we give at least a temporary warning in the docs, and that t

[issue917120] imaplib: incorrect quoting in commands

2010-08-18 Thread Mark Lawrence
Mark Lawrence added the comment: I agree with Dan's comment in msg112741 about dead code so this only applies to 2.7. I'll raise a new issue to get the dead code removed from py3k. -- nosy: +BreamoreBoy stage: unit test needed -> patch review ___ P

[issue917120] imaplib: incorrect quoting in commands

2010-08-05 Thread Dave Baggett
Dave Baggett added the comment: Piers Lauder, author of imaplib, emailed me the following comment about this bug: The regex for "mustquote_cre" looks bizarre, and I regret to say I can no longer remember its genesis. Note however, that the term CTL in the RFC definition for "atom-

[issue917120] imaplib: incorrect quoting in commands

2010-08-03 Thread Dan Buch
Dan Buch added the comment: I'm attaching a patch which does exactly what dmbaggett recommended w.r.t. the mustquote regex. All current tests pass, but I'm not sure if the current tests even cover this code (how is coverage measured in the stdlib tests?) On a related note, the `_checkquote`

[issue917120] imaplib: incorrect quoting in commands

2009-05-12 Thread Dave Baggett
Dave Baggett added the comment: OK, I missed the initial caret in the regex. The mustquote regex is listing everything that needn't be quoted, and then negating. I still think it's wrong, though. According to BNF given in the Formal Syntax section of RFC 3501, you must must quote atom-specials,

[issue917120] imaplib: incorrect quoting in commands

2009-05-12 Thread Dave Baggett
Dave Baggett added the comment: I'm not sure this causes the behavior reported here, but I believe there really is a bug in imaplib. In particular, it seems wrong to me that this line: mustquote = re.compile(r"[^\w!#$%&'*+,.:;<=>?^`|~-]") has \w in it. Should that be \s? I found this when I

[issue917120] imaplib: incorrect quoting in commands

2009-02-14 Thread Daniel Diniz
Changes by Daniel Diniz : -- stage: -> test needed versions: +Python 2.7 -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mai

[issue917120] imaplib: incorrect quoting in commands

2008-01-20 Thread Christian Heimes
Changes by Christian Heimes: -- keywords: +easy type: -> rfe versions: +Python 2.6 -Python 2.3 Tracker <[EMAIL PROTECTED]> ___ Pyth