diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-08-18 15:56:33 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-08-18 15:56:33 +0100 |
commit | 244a9efad601be931eb71a689414be1d8bf70cea (patch) | |
tree | 7bd2ec44d28c581316281b9082e6a3283ffbbbed /conf/lua | |
parent | 2cb4d78b02be7a011876da557ea6b922700fd39c (diff) | |
download | rspamd-244a9efad601be931eb71a689414be1d8bf70cea.tar.gz rspamd-244a9efad601be931eb71a689414be1d8bf70cea.zip |
Fix plugins.
Diffstat (limited to 'conf/lua')
-rw-r--r-- | conf/lua/hfilter.lua | 2 | ||||
-rw-r--r-- | conf/lua/rspamd.classifiers.lua | 4 |
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 |