From: Andrew Lewis Date: Fri, 26 May 2023 13:08:23 +0000 (+0200) Subject: [Fix] rbl: fix dependency registration when symbols_prefixes is used X-Git-Tag: 3.6~98^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F4498%2Fhead;p=rspamd.git [Fix] rbl: fix dependency registration when symbols_prefixes is used --- diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua index cc43346d3..9d1097d94 100644 --- a/src/plugins/lua/rbl.lua +++ b/src/plugins/lua/rbl.lua @@ -1088,13 +1088,15 @@ local function add_rbl(key, rbl, global_opts) lua_util.debugm(N, rspamd_config, 'rule dump for %s: %s', rbl.symbol, rbl) + local check_sym = rbl.symbol_prefixes and rbl.symbol .. '_CHECK' or rbl.symbol + if rbl.dkim then - rspamd_config:register_dependency(rbl.symbol, 'DKIM_CHECK') + rspamd_config:register_dependency(check_sym, 'DKIM_CHECK') end if rbl.require_symbols then for _,dep in ipairs(rbl.require_symbols) do - rspamd_config:register_dependency(rbl.symbol, dep) + rspamd_config:register_dependency(check_sym, dep) end end