]> git.droids-corp.org - imapami.git/commitdiff
cond: fix "not" condition
authorOlivier Matz <olivier.matz@6wind.com>
Tue, 29 Mar 2016 08:38:40 +0000 (10:38 +0200)
committerOlivier Matz <olivier.matz@6wind.com>
Tue, 29 Mar 2016 08:38:40 +0000 (10:38 +0200)
Signed-off-by: Olivier Matz <zer0@droids-corp.org>
imapami/conditions.py

index 4d06e88209e1aff40676a6cc6b3ac3a292a88af2..600a2c697ad5d03b75fef76179a8010bdd59f5a2 100644 (file)
@@ -128,7 +128,7 @@ class ImapamiCondNot(ImapamiCond):
     name = "not"
     def __init__(self, cond):
         cond = new(cond)
-        criteria = 'NOT (%s)' % (cond.get_criteria())
+        criteria = set(['NOT (%s)' % (cond.get_criteria())])
         ImapamiCond.__init__(self, fetch=cond.fetch, criteria=criteria)
         self.cond = cond