From: Carsten Rosenberg Date: Thu, 7 Jan 2021 18:15:27 +0000 (+0100) Subject: [Minor] force_actions - maybe disable current action bypass X-Git-Tag: 2.7~2^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F3598%2Fhead;p=thirdparty%2Frspamd.git [Minor] force_actions - maybe disable current action bypass --- diff --git a/src/plugins/lua/force_actions.lua b/src/plugins/lua/force_actions.lua index 62e7cdc5d1..9355c5249b 100644 --- a/src/plugins/lua/force_actions.lua +++ b/src/plugins/lua/force_actions.lua @@ -91,7 +91,9 @@ local function gen_cb(params) end local cact = task:get_metric_action('default') - + if not params.message and not params.subject and params.act and cact == params.act then + return false + end if params.honor and params.honor[cact] then return false elseif params.raction and not params.raction[cact] then