From: Vsevolod Stakhov Date: Fri, 16 Oct 2020 10:25:44 +0000 (+0100) Subject: [Minor] Force_actions: Another fix X-Git-Tag: 2.7~228 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e5407f6caba295084e61552b743e4e0f1833f802;p=thirdparty%2Frspamd.git [Minor] Force_actions: Another fix --- diff --git a/src/plugins/lua/force_actions.lua b/src/plugins/lua/force_actions.lua index 69cc63a661..6e9ef92006 100644 --- a/src/plugins/lua/force_actions.lua +++ b/src/plugins/lua/force_actions.lua @@ -102,7 +102,7 @@ local function gen_cb(params) local ret = e:process(task) lua_util.debugm(N, task, "expression %s returned %s", params.expr, ret) - if (not params.limit) or ret > params.limit then + if (not params.limit and ret > 0) or ret > params.limit then if params.subject then task:set_metric_subject(params.subject) end