]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] force_actions - maybe disable current action bypass 3598/head
authorCarsten Rosenberg <c.rosenberg@heinlein-support.de>
Thu, 7 Jan 2021 18:15:27 +0000 (19:15 +0100)
committerCarsten Rosenberg <c.rosenberg@heinlein-support.de>
Thu, 7 Jan 2021 18:15:27 +0000 (19:15 +0100)
src/plugins/lua/force_actions.lua

index 62e7cdc5d15dbb45bb4b1a1d6c85282a086c37f7..9355c5249bc9bc76ab05e081a01b44c342eb297f 100644 (file)
@@ -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