]> source.dussan.org Git - rspamd.git/commitdiff
Don't use key as symbol if returncodes given and unknown is false 4/head
authorAndrew Lewis <nerf@judo.za.org>
Sat, 23 Nov 2013 11:23:24 +0000 (13:23 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Sat, 23 Nov 2013 11:23:24 +0000 (13:23 +0200)
src/plugins/lua/rbl.lua

index 13d18d4fc6e3713d0a652f228aa2f9d354b2fad7..d46e0a33dd0b92c2891218ec5347020143e08341 100644 (file)
@@ -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