diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-12-13 12:20:21 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-13 12:20:21 +0000 |
commit | b0e98a56befeed42291de8ac01d46f86879c6c97 (patch) | |
tree | 6d7ef4c57a3eac216b8010cd104d1c01162c7485 | |
parent | 40feb51e4e8ee7b8eae5c9d23c3068a56768235a (diff) | |
parent | fb53d4f2fd85fda30e669ed580de19b84ee36925 (diff) | |
download | rspamd-b0e98a56befeed42291de8ac01d46f86879c6c97.tar.gz rspamd-b0e98a56befeed42291de8ac01d46f86879c6c97.zip |
Merge pull request #4743 from fatalbanana/rbl_luapatterns_again
[Minor] rbl: try harder to identify lua patterns
-rw-r--r-- | lualib/plugins/rbl.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lualib/plugins/rbl.lua b/lualib/plugins/rbl.lua index 7c5efb4cd..812407f4d 100644 --- a/lualib/plugins/rbl.lua +++ b/lualib/plugins/rbl.lua @@ -203,8 +203,8 @@ 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) then - rspamd_logger.info(rspamd_config, 'implicitly enabling luapattern returncodes_matcher for rule %s', rule.symbol) + if e:find('%', 1, true) or e:find('[%.%d%x:]%[', 1, false) then + rspamd_logger.warn(rspamd_config, 'implicitly enabling luapattern returncodes_matcher for rule %s', rule.symbol) rule.returncodes_matcher = 'luapattern' break end |