From 01872d6ac7a1ab4ad564b9b15b2620b2db72a2ae Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 13 Nov 2020 11:22:06 +0000 Subject: [Minor] Rbl: Allow to add dependencies for RBL rules --- src/plugins/lua/rbl.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua index 534a4855b..dabf259e2 100644 --- a/src/plugins/lua/rbl.lua +++ b/src/plugins/lua/rbl.lua @@ -1025,6 +1025,12 @@ local function add_rbl(key, rbl, global_opts) rspamd_config:register_dependency(rbl.symbol, 'DKIM_CHECK') end + if rbl.require_symbols then + for _,dep in ipairs(rbl.require_symbols) do + rspamd_config:register_dependency(rbl.symbol, dep) + end + end + -- Failure symbol rspamd_config:register_symbol{ type = 'virtual', -- cgit v1.2.3