summaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-08-18 15:56:33 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-08-18 15:56:33 +0100
commit244a9efad601be931eb71a689414be1d8bf70cea (patch)
tree7bd2ec44d28c581316281b9082e6a3283ffbbbed /conf
parent2cb4d78b02be7a011876da557ea6b922700fd39c (diff)
downloadrspamd-244a9efad601be931eb71a689414be1d8bf70cea.tar.gz
rspamd-244a9efad601be931eb71a689414be1d8bf70cea.zip
Fix plugins.
Diffstat (limited to 'conf')
-rw-r--r--conf/lua/hfilter.lua2
-rw-r--r--conf/lua/rspamd.classifiers.lua4
2 files changed, 3 insertions, 3 deletions
diff --git a/conf/lua/hfilter.lua b/conf/lua/hfilter.lua
index cfa6e3d22..18fc995c1 100644
--- a/conf/lua/hfilter.lua
+++ b/conf/lua/hfilter.lua
@@ -229,7 +229,7 @@ local function hfilter(task)
end
-- MAILFROM checks --
- local from = task:get_from()
+ local from = task:get_from(1)
if from then
--FROM host check
for _,fr in ipairs(from) do
diff --git a/conf/lua/rspamd.classifiers.lua b/conf/lua/rspamd.classifiers.lua
index de1e23506..d73d08178 100644
--- a/conf/lua/rspamd.classifiers.lua
+++ b/conf/lua/rspamd.classifiers.lua
@@ -14,7 +14,7 @@ local function get_specific_statfiles(classifier, task)
-- More 5 recipients
local st_many = classifier:get_statfile_by_label(many_recipients_label)
if st_many then
- rcpt = task:get_recipients()
+ rcpt = task:get_recipients(2)
if rcpt and table.maxn(rcpt) > 5 then
print(table.maxn(rcpt))
table.foreach(st_many, function(i,v) table.insert(spec_st,v) end)
@@ -23,7 +23,7 @@ local function get_specific_statfiles(classifier, task)
-- Undisclosed
local st_undisc = classifier:get_statfile_by_label(undisclosed_recipients_label)
if st_undisc then
- rcpt = task:get_recipients()
+ rcpt = task:get_recipients(2)
if rcpt and table.maxn(rcpt) == 0 then
table.foreach(st_undisc, function(i,v) table.insert(spec_st,v) end)
end