From: Olivier Matz Date: Wed, 30 Nov 2016 10:27:59 +0000 (+0100) Subject: fix setting of per-rule inbox X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=32328e44a54290c120492165640220ae53d9cf2f;p=imapami.git fix setting of per-rule inbox --- diff --git a/imapami/rules.py b/imapami/rules.py index d5b1f9f..0b17eaa 100644 --- a/imapami/rules.py +++ b/imapami/rules.py @@ -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)