From 8d43ab31ec94961357c6ec0f83adc43d30acb288 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Sat, 23 Nov 2013 13:23:24 +0200 Subject: [PATCH] Don't use key as symbol if returncodes given and unknown is false --- src/plugins/lua/rbl.lua | 3 +-- 1 file changed, 1 insertion(+), 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 -- 2.39.5