},
urls = {},
content_urls = {},
+ numeric_urls = {},
emails = {},
replyto = {},
dkim = {},
rule_schema = ts.shape(rule_schema_tbl),
default_options = default_options,
convert_checks = convert_checks,
-}
\ No newline at end of file
+}
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)
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
... Settings={symbols_enabled = [RBL_SELECTOR_MULTIPLE]}
Expect Symbol With Option RBL_SELECTOR_MULTIPLE example.org:sel_from
Expect Symbol With Option RBL_SELECTOR_MULTIPLE example.org:sel_helo
+
+NUMERIC URLS
+ Scan File ${RSPAMD_TESTDIR}/messages/numeric_urls.eml
+ ... Settings={symbols_enabled = [URIBL_NUMERIC]}
+ Expect Symbol With Exact Options URIBL_NUMERIC 4.3.2.1:url
type = a;
replies = ["127.0.0.2"];
},
+ {
+ name = "4.3.2.1.test9.uribl";
+ type = a;
+ replies = ["127.0.0.2"];
+ },
{
name = "8.8.8.8.test9.uribl";
type = a;
RSPAMD_EMAILBL = "127.0.0.2";
}
}
+ URIBL_NUMERIC {
+ checks = ["numeric_urls"];
+ rbl = "test9.uribl";
+ }
URIBL_NOCONTENT {
rbl = "test9.uribl";
ignore_defaults = true;
--- /dev/null
+Content-type: text/plain\r
+\r
+numeric http://1.2.3.4 and not http://example.org ok\r