From: Olivier Matz Date: Tue, 29 Mar 2016 08:38:40 +0000 (+0200) Subject: cond: fix "not" condition X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=3bf7e2c76265fff7d1206990413430f69c13bb62;p=imapami.git cond: fix "not" condition Signed-off-by: Olivier Matz --- diff --git a/imapami/conditions.py b/imapami/conditions.py index 4d06e88..600a2c6 100644 --- a/imapami/conditions.py +++ b/imapami/conditions.py @@ -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