From 32328e44a54290c120492165640220ae53d9cf2f Mon Sep 17 00:00:00 2001 From: Olivier Matz Date: Wed, 30 Nov 2016 11:27:59 +0100 Subject: [PATCH] fix setting of per-rule inbox --- imapami/rules.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.39.5