Message223170
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() |
|
Date |
User |
Action |
Args |
2014-07-16 04:53:32 | Lita.Cho | set | recipients:
+ Lita.Cho, barry, ezio.melotti, r.david.murray, jesstess, rafales |
2014-07-16 04:53:32 | Lita.Cho | set | messageid: <1405486412.42.0.158331366009.issue21815@psf.upfronthosting.co.za> |
2014-07-16 04:53:32 | Lita.Cho | link | issue21815 messages |
2014-07-16 04:53:31 | Lita.Cho | create | |
|