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 <rep...@bugs.python.org>
<http://bugs.python.org/issue21815>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to