commit 84ee281: [Minor] rbl: revisit previous change

Andrew Lewis nerf at judo.za.org
Mon Jul 29 17:50:29 UTC 2024


Author: Andrew Lewis
Date: 2023-12-15 15:02:52 +0200
URL: https://github.com/rspamd/rspamd/commit/84ee2815a5c5d4656eacfddd2f06c1c3f13b660e (refs/pull/4747/head)

[Minor] rbl: revisit previous change

---
 lualib/plugins/rbl.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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


More information about the Commits mailing list