aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-11-13 11:22:06 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-11-13 11:30:00 +0000
commit01872d6ac7a1ab4ad564b9b15b2620b2db72a2ae (patch)
tree36e0741072f553665ec724ad370b0492ae14d8ea /src
parentd4d8063ebb915a7c1fd50e6b207d78e13fd8db3f (diff)
downloadrspamd-01872d6ac7a1ab4ad564b9b15b2620b2db72a2ae.tar.gz
rspamd-01872d6ac7a1ab4ad564b9b15b2620b2db72a2ae.zip
[Minor] Rbl: Allow to add dependencies for RBL rules
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/rbl.lua6
1 files changed, 6 insertions, 0 deletions
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',