]> git.droids-corp.org - imapami.git/commitdiff
fix setting of per-rule inbox
authorOlivier Matz <olivier.matz@6wind.com>
Wed, 30 Nov 2016 10:27:59 +0000 (11:27 +0100)
committerOlivier Matz <olivier.matz@6wind.com>
Wed, 30 Nov 2016 10:27:59 +0000 (11:27 +0100)
imapami/rules.py

index d5b1f9f4d4f8fb144547e25abddaa75a1cd0928f..0b17eaa5c3a0af7402ba1c8da37bef2979883a0c 100644 (file)
@@ -273,6 +273,7 @@ def new(config):
     if name is None:
         name = "no-name"
     fetch = config.get("fetch")
+    inbox = config.get("inbox")
     conditions = config.get("if")
     if conditions is None:
         logger.debug("no condition for rule <%s>, assume always true", name)
@@ -300,4 +301,4 @@ def new(config):
         action_list = {"list": error_actions}
         error_action = imapami.actions.new(action_list)
     return ImapamiRule(name, condition, match_action, nomatch_action,
-                       error_action, fetch)
+                       error_action, fetch, inbox)