actions: surround flags with parenthesis
authorOlivier Matz <zer0@droids-corp.org>
Sun, 27 Nov 2016 14:40:04 +0000 (15:40 +0100)
committerOlivier Matz <olivier.matz@6wind.com>
Mon, 28 Nov 2016 10:01:38 +0000 (11:01 +0100)
commitaae862167223e90151e2091eee55e1b125b7e22d
tree886337bd69e724eb724ea112023060f1c93e23ae
parent1057fcec8ac1e8c77836b561746bdbc9b9de2725
actions: surround flags with parenthesis

It looks that when using uid, some servers expects that the flags
are surrounded by parenthesis. Else, we get this error:

UID command error: BAD
['Error in IMAP command UID STORE: Flags list contains non-atoms.']

Seen also here:
https://github.com/coddingtonbear/django-mailbox/commit/dad65d802c7eab86c88dca3ef466dc4c43daffc0

Signed-off-by: Olivier Matz <zer0@droids-corp.org>
imapami/actions.py