summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2023-09-11 11:13:47 +0200
committerAndrew Lewis <nerf@judo.za.org>2023-09-11 11:13:47 +0200
commit076ca2c763876307b45980a52db420af96fff629 (patch)
treeca831e1ab51251b4daec1ec42ab6a7e32c6820f5 /src
parent67c8b53122b6538f66cee813b9ec6d1cbe86211e (diff)
downloadrspamd-076ca2c763876307b45980a52db420af96fff629.tar.gz
rspamd-076ca2c763876307b45980a52db420af96fff629.zip
[Feature] rbl: support checking numeric URLs in isolation
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/rbl.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua
index 6dce0e0f1..c5cdbef1c 100644
--- a/src/plugins/lua/rbl.lua
+++ b/src/plugins/lua/rbl.lua
@@ -572,6 +572,9 @@ local function gen_rbl_callback(rule)
if rule.images then
table.insert(ex_params.flags, 'image')
end
+ if rule.numeric_urls then
+ table.insert(ex_params.flags, 'numeric')
+ end
end
local urls = lua_util.extract_specific_urls(ex_params)
@@ -805,7 +808,7 @@ local function gen_rbl_callback(rule)
description[#description + 1] = 'replyto'
end
- if rule.urls or rule.content_urls or rule.images then
+ if rule.urls or rule.content_urls or rule.images or rule.numeric_urls then
pipeline[#pipeline + 1] = check_urls
description[#description + 1] = 'urls'
end