diff options
author | Carsten Rosenberg <c.rosenberg@heinlein-support.de> | 2021-01-07 19:15:27 +0100 |
---|---|---|
committer | Carsten Rosenberg <c.rosenberg@heinlein-support.de> | 2021-01-07 19:15:27 +0100 |
commit | 86364a68a6135d22f2eaee782670c30d08d5479d (patch) | |
tree | 0911eeb218c1542653cdff6a774fd34e10168100 | |
parent | c6cdbfcb99822274ab982bce7345010910bd5a8e (diff) | |
download | rspamd-86364a68a6135d22f2eaee782670c30d08d5479d.tar.gz rspamd-86364a68a6135d22f2eaee782670c30d08d5479d.zip |
[Minor] force_actions - maybe disable current action bypass
-rw-r--r-- | src/plugins/lua/force_actions.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/lua/force_actions.lua b/src/plugins/lua/force_actions.lua index 62e7cdc5d..9355c5249 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 |