[issue21815] imaplib truncates some untagged responses

Rafał Stożek report at bugs.python.org
Fri Jun 20 16:39:56 CEST 2014


New submission from Rafał Stożek:

The regexp in Response_code checks for the existence of [] characters. The problem is that the strings may contain [] characters. I attach debug log which shows the data received from server and what the python extracted from it.

You can see that the PERNANENTFLAGS is truncated and everything from the ] character is lost:

(\Answered \Flagged \Draft \Deleted \Seen OIB-Seen-OIB/Social Networking $Phishing $Forwarded OIB-Seen-OIB/Home OIB-Seen-OIB/Shopping OIB-Seen-INBOX OIB-Seen-OIB/Business OIB-Seen-OIB/Entertainment $NotJunk $NotPhishing $Junk OIB-Seen-[Gmail

----------
components: Library (Lib)
messages: 221091
nosy: rafales
priority: normal
severity: normal
status: open
title: imaplib truncates some untagged responses
type: behavior
versions: Python 2.7

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


More information about the Python-bugs-list mailing list