]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix whitelists and blacklists in SA rules rspamd-1.2
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 5 Jul 2016 09:33:55 +0000 (10:33 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 5 Jul 2016 09:34:35 +0000 (10:34 +0100)
src/plugins/lua/spamassassin.lua

index 7ebf801599ebf9bb6579e6743bceca1edc4a5348..1c1e1f6d2a3705fd90a39f7c4869c2f29f763f8d 100644 (file)
@@ -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