[issue917120] imaplib: incorrect quoting in commands

Charalampos Tsimpouris report at bugs.python.org
Sat Dec 18 11:46:27 EST 2021


Charalampos Tsimpouris <xtsimpouris at 1024.gr> 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 circumvent the problem I suggest using a patched version of _command, where if name is "select" or "examine", check if arg startswith ", and if not wrap it - locally this seems to fix my problem. A different approach would be to force user use _quote function when needed (also fixes my problem locally).

----------
nosy: +xtsimpouris

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue917120>
_______________________________________


More information about the Python-bugs-list mailing list