commit 86364a6: [Minor] force_actions - maybe disable current action bypass

Carsten Rosenberg c.rosenberg at heinlein-support.de
Thu Jan 7 19:56:10 UTC 2021


Author: Carsten Rosenberg
Date: 2021-01-07 19:15:27 +0100
URL: https://github.com/rspamd/rspamd/commit/86364a68a6135d22f2eaee782670c30d08d5479d (refs/pull/3598/head)

[Minor] force_actions - maybe disable current action bypass

---
 src/plugins/lua/force_actions.lua | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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


More information about the Commits mailing list