[New-bugs-announce] [issue14869] imaplib erronously quotes atoms such as flags

Daniel Kinzler report at bugs.python.org
Mon May 21 11:56:51 CEST 2012


New submission from Daniel Kinzler <daniel at brightbyte.de>:

imap consideres flags to be atoms, and atoms should not be quoted. Attempting to use a quoted flag with e.g. STORE +FLAGS will cause some servers, like dovecot, to return an error.

However, imaplib apparently auto-quotes all parameters that contain a backslash. This applies to default flags such as \Deleted or \Seen. This results in an error from some IMAP servers.

The reason seems to be that _checkquote method wants to quote anything that matches the _mustquote pattern, and that pattern matches strings containing backslashes.

----------
components: Extension Modules
messages: 161257
nosy: brightbyte
priority: normal
severity: normal
status: open
title: imaplib erronously quotes atoms such as flags
type: behavior
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14869>
_______________________________________


More information about the New-bugs-announce mailing list