diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-02-16 14:14:25 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-02-16 14:14:25 +0000 |
commit | a1281498414a7efdb4c275eee647273be4d92c4b (patch) | |
tree | ba785a2555d82894a20ae09049b52ba4ad2e8b56 /lualib | |
parent | 8c3dfcf875b2da9b59125b4286fc0ed759492aa3 (diff) | |
download | rspamd-a1281498414a7efdb4c275eee647273be4d92c4b.tar.gz rspamd-a1281498414a7efdb4c275eee647273be4d92c4b.zip |
[Feature] Rbl: Distinguish flattened and non-flattened selectors in RBL requests
Issue: #3648
Diffstat (limited to 'lualib')
-rw-r--r-- | lualib/plugins/rbl.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lualib/plugins/rbl.lua b/lualib/plugins/rbl.lua index 78f2c9064..3bddf52ba 100644 --- a/lualib/plugins/rbl.lua +++ b/lualib/plugins/rbl.lua @@ -53,6 +53,7 @@ local default_options = { ['default_exclude_local'] = true, ['default_no_ip'] = false, ['default_dkim_match_from'] = false, + ['default_selector_flatten'] = true, } local return_codes_schema = ts.map_of( @@ -126,6 +127,7 @@ local rule_schema_tbl = { returnbits = return_bits_schema:is_optional(), returncodes = return_codes_schema:is_optional(), selector = ts.one_of{ts.string, ts.table}:is_optional(), + selector_flatten = ts.boolean:is_optional(), symbol = ts.string:is_optional(), symbols_prefixes = ts.map_of(ts.string, ts.string):is_optional(), unknown = ts.boolean:is_optional(), |