]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix whitelists and blacklists in SA rules
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:33:55 +0000 (10:33 +0100)
src/plugins/lua/spamassassin.lua

index 266e4d02419b1193258156e878c8c73086370eb7..07868b7891b2e4c675564de90a28d03f12b9e523 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