From: Vsevolod Stakhov Date: Tue, 5 Jul 2016 09:33:55 +0000 (+0100) Subject: [Fix] Fix whitelists and blacklists in SA rules X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fheads%2Frspamd-1.2;p=thirdparty%2Frspamd.git [Fix] Fix whitelists and blacklists in SA rules --- diff --git a/src/plugins/lua/spamassassin.lua b/src/plugins/lua/spamassassin.lua index 7ebf801599..1c1e1f6d2a 100644 --- a/src/plugins/lua/spamassassin.lua +++ b/src/plugins/lua/spamassassin.lua @@ -452,7 +452,7 @@ local function gen_eval_rule(arg) local rcpt = task:get_recipients('mime') if rcpt then for i,r in ipairs(rcpt) do - if sa_lists['from_blacklist'][string.lower(r['addr'])] then + if sa_lists['to_blacklist'][string.lower(r['addr'])] then return 1 end end @@ -467,7 +467,7 @@ local function gen_eval_rule(arg) local rcpt = task:get_recipients('mime') if rcpt then for i,r in ipairs(rcpt) do - if sa_lists['from_whitelist'][string.lower(r['addr'])] then + if sa_lists['to_whitelist'][string.lower(r['addr'])] then return 1 end end