aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2013-11-23 13:23:24 +0200
committerAndrew Lewis <nerf@judo.za.org>2013-11-23 13:23:24 +0200
commit8d43ab31ec94961357c6ec0f83adc43d30acb288 (patch)
tree48a0c108a296e9bd18720e9f91538068144463eb
parent7ae08f2ca9be228aee4d28c8486d64c1543b8c7d (diff)
downloadrspamd-8d43ab31ec94961357c6ec0f83adc43d30acb288.tar.gz
rspamd-8d43ab31ec94961357c6ec0f83adc43d30acb288.zip
Don't use key as symbol if returncodes given and unknown is false
-rw-r--r--src/plugins/lua/rbl.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua
index 13d18d4fc..d46e0a33d 100644
--- a/src/plugins/lua/rbl.lua
+++ b/src/plugins/lua/rbl.lua
@@ -7,7 +7,6 @@
-- rbls {
-- spamhaus {
-- rbl = "zen.spamhaus.org";
--- symbol = "RBL_ZEN";
-- ipv4 = true;
-- ipv6 = false;
-- unknown = false;
@@ -147,7 +146,7 @@ for key,rbl in pairs(opts['rbls']) do
end
end
end
- if not rbl['symbol'] then
+ if not rbl['symbol'] and type(rbl['returncodes']) ~= 'nil' and not rbl['unknown'] then
rbl['symbol'] = key
end
if type(rspamd_config.get_api_version) ~= 'nil' then