Author rafales
Recipients rafales
Date 2014-06-20.14:39:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1403275196.37.0.409307454531.issue21815@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2014-06-20 14:39:56rafalessetrecipients: + rafales
2014-06-20 14:39:56rafalessetmessageid: <1403275196.37.0.409307454531.issue21815@psf.upfronthosting.co.za>
2014-06-20 14:39:56rafaleslinkissue21815 messages
2014-06-20 14:39:55rafalescreate