aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-05-27 12:13:19 +0100
committerGitHub <noreply@github.com>2023-05-27 12:13:19 +0100
commit92f695cc48a3611a2aaf14944d641343c52e504a (patch)
tree283c8106d4cb528cf7658210377606b2d0861ec9
parentacc419dbbc8000f3e920f27e9b8c0a0de40c77c1 (diff)
parent868a85c233775380c6dbc53bca62d02d063e0ad1 (diff)
downloadrspamd-92f695cc48a3611a2aaf14944d641343c52e504a.tar.gz
rspamd-92f695cc48a3611a2aaf14944d641343c52e504a.zip
Merge pull request #4498 from fatalbanana/rbl_symbols_prefixes
[Fix] rbl: fix dependency registration when symbols_prefixes is used
-rw-r--r--src/plugins/lua/rbl.lua6
1 files changed, 4 insertions, 2 deletions
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