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 <1405486412.42.0.158331366009.issue21815@psf.upfronthosting.co.za>
In-reply-to
Content
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('imap.gmail.com')
mail.login('username@gmail.com', 'password') # Enter your login here
mail.select('test') # Mailbox selection. I have a test inbox with 6
                    # messages in it.
code, [msg_ids] = mail.search(None, 'ALL')
first_id = msg_ids.split()[0]
mail.store(first_id, "+FLAGS", "[test]")
typ, response = mail.fetch(first_id, '(FLAGS)')
print("Flags: %s" % response)
mail.close()
mail.logout()
History
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: <1405486412.42.0.158331366009.issue21815@psf.upfronthosting.co.za>
2014-07-16 04:53:32Lita.Cholinkissue21815 messages
2014-07-16 04:53:31Lita.Chocreate