aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/plugins
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 /lualib/plugins
parentd4d8063ebb915a7c1fd50e6b207d78e13fd8db3f (diff)
downloadrspamd-01872d6ac7a1ab4ad564b9b15b2620b2db72a2ae.tar.gz
rspamd-01872d6ac7a1ab4ad564b9b15b2620b2db72a2ae.zip
[Minor] Rbl: Allow to add dependencies for RBL rules
Diffstat (limited to 'lualib/plugins')
-rw-r--r--lualib/plugins/rbl.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/lualib/plugins/rbl.lua b/lualib/plugins/rbl.lua
index 4eeff7b09..62f9ce9d8 100644
--- a/lualib/plugins/rbl.lua
+++ b/lualib/plugins/rbl.lua
@@ -113,6 +113,9 @@ local rule_schema_tbl = {
received = ts.boolean:is_optional(),
replyto = ts.boolean:is_optional(),
requests_limit = (ts.integer + ts.string / tonumber):is_optional(),
+ require_symbols = (
+ ts.array_of(ts.string) + (ts.string / function(s) return {s} end)
+ ):is_optional(),
resolve_ip = ts.boolean:is_optional(),
return_bits = return_bits_schema:is_optional(),
return_codes = return_codes_schema:is_optional(),