This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rafales
Recipients rafales
Date 2014-06-20.14:39:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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
Date User Action Args
2014-06-20 14:39:56rafalessetrecipients: + rafales
2014-06-20 14:39:56rafalessetmessageid: <>
2014-06-20 14:39:56rafaleslinkissue21815 messages
2014-06-20 14:39:55rafalescreate