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 Lita.Cho
Recipients Lita.Cho, barry, ezio.melotti, jesstess, r.david.murray, rafales
Date 2014-07-16.04:53:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Yes! I agree, this change will need tests. I will start working on creating those now.

Here is test I did to create a flag with brackets.

import imaplib

mail = imaplib.IMAP4_SSL('')
mail.login('', 'password') # Enter your login here'test') # Mailbox selection. I have a test inbox with 6
                    # messages in it.
code, [msg_ids] =, 'ALL')
first_id = msg_ids.split()[0], "+FLAGS", "[test]")
typ, response = mail.fetch(first_id, '(FLAGS)')
print("Flags: %s" % response)
Date User Action Args
2014-07-16 04:53:32Lita.Chosetrecipients: + Lita.Cho, barry, ezio.melotti, r.david.murray, jesstess, rafales
2014-07-16 04:53:32Lita.Chosetmessageid: <>
2014-07-16 04:53:32Lita.Cholinkissue21815 messages
2014-07-16 04:53:31Lita.Chocreate