aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/url_reputation.lua15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/plugins/lua/url_reputation.lua b/src/plugins/lua/url_reputation.lua
index 952093a62..17249d088 100644
--- a/src/plugins/lua/url_reputation.lua
+++ b/src/plugins/lua/url_reputation.lua
@@ -592,7 +592,20 @@ if not redis_params then
return
end
for k, v in pairs(opts) do
- settings[k] = v
+ if k == 'ignore_surbl' then
+ if type(v) == 'table' then
+ if next(v) ~= 1 then
+ settings[k] = v
+ else
+ settings[k] = {}
+ for _, n in ipairs(v) do
+ settings[k][n] = true
+ end
+ end
+ end
+ else
+ settings[k] = v
+ end
end
if settings.threshold < 1 then
rspamd_logger.errx(rspamd_config, 'threshold should be >= 1, disabling module')