From: Vsevolod Stakhov Date: Sat, 14 May 2022 12:47:55 +0000 (+0100) Subject: [Minor] Force_actions: Fix logic of the module with the modified symcache X-Git-Tag: 3.3~246 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5103fd021c61b860cc2bf6e6872d1456819627c3;p=thirdparty%2Frspamd.git [Minor] Force_actions: Fix logic of the module with the modified symcache --- diff --git a/src/plugins/lua/force_actions.lua b/src/plugins/lua/force_actions.lua index ecdd3aeeec..78676484a9 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