From 3bf7e2c76265fff7d1206990413430f69c13bb62 Mon Sep 17 00:00:00 2001 From: Olivier Matz Date: Tue, 29 Mar 2016 10:38:40 +0200 Subject: [PATCH] cond: fix "not" condition Signed-off-by: Olivier Matz --- imapami/conditions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5