aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2023-12-15 15:02:52 +0200
committerAndrew Lewis <nerf@judo.za.org>2023-12-15 15:02:52 +0200
commit84ee2815a5c5d4656eacfddd2f06c1c3f13b660e (patch)
treea0df873d285f8bf45d30a53364a60145e9aa0db6
parent7326da15073eaf259426cc84d966e2ec6dcbc427 (diff)
downloadrspamd-84ee2815a5c5d4656eacfddd2f06c1c3f13b660e.tar.gz
rspamd-84ee2815a5c5d4656eacfddd2f06c1c3f13b660e.zip
[Minor] rbl: revisit previous change
-rw-r--r--lualib/plugins/rbl.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/plugins/rbl.lua b/lualib/plugins/rbl.lua
index 812407f4d..b5232a8b4 100644
--- a/lualib/plugins/rbl.lua
+++ b/lualib/plugins/rbl.lua
@@ -203,7 +203,7 @@ local function convert_checks(rule)
if rule.returncodes and not rule.returncodes_matcher then
for _, v in pairs(rule.returncodes) do
for _, e in ipairs(v) do
- if e:find('%', 1, true) or e:find('[%.%d%x:]%[', 1, false) then
+ if e:find('[%%%[]') then
rspamd_logger.warn(rspamd_config, 'implicitly enabling luapattern returncodes_matcher for rule %s', rule.symbol)
rule.returncodes_matcher = 'luapattern'
break