From 5103fd021c61b860cc2bf6e6872d1456819627c3 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 14 May 2022 13:47:55 +0100 Subject: [PATCH] [Minor] Force_actions: Fix logic of the module with the modified symcache --- src/plugins/lua/force_actions.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/plugins/lua/force_actions.lua b/src/plugins/lua/force_actions.lua index ecdd3aeee..78676484a 100644 --- a/src/plugins/lua/force_actions.lua +++ b/src/plugins/lua/force_actions.lua @@ -195,10 +195,13 @@ local function configure_module() t.priority = 10 else t.type = 'normal' + if not sett.least then + t.augmentations = {'passthrough', 'important'} + end end t.name = 'FORCE_ACTION_' .. name t.callback = cb - t.flags = 'empty' + t.flags = 'empty, ignore_passthrough' rspamd_config:register_symbol(t) if t.type == 'normal' then for _, a in ipairs(atoms) do @@ -215,4 +218,4 @@ local function configure_module() end end -configure_module() +configure_module() \ No newline at end of file -- 2.39.5