aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-09-05 16:45:46 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-09-05 16:45:46 +0100
commita94c61767322db73dbedb98f58347a3c7f6fa982 (patch)
treee1f1c5e4fa60a9f0185329c051bb0679e35246ad
parent7b345a4fa03eee1983c60b459340fd5e5a65992a (diff)
downloadrspamd-a94c61767322db73dbedb98f58347a3c7f6fa982.tar.gz
rspamd-a94c61767322db73dbedb98f58347a3c7f6fa982.zip
More fixes to classifiers selector.
-rw-r--r--conf/lua/rspamd.classifiers.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/conf/lua/rspamd.classifiers.lua b/conf/lua/rspamd.classifiers.lua
index 3ba1c0fc6..db7efe62c 100644
--- a/conf/lua/rspamd.classifiers.lua
+++ b/conf/lua/rspamd.classifiers.lua
@@ -45,7 +45,7 @@ local function get_specific_statfiles(classifier, task)
local st_longsubj = classifier:get_statfile_by_label(long_subject_label)
if st_longsubj then
local subj = task:get_header_raw('Subject')
- if subj and string.len(subj['value']) > 150 then
+ if subj and string.len(subj) > 150 then
table.foreach(st_longsubj, function(i,v) table.insert(spec_st,v) end)
end
end
@@ -55,7 +55,7 @@ local function get_specific_statfiles(classifier, task)
local to = task:get_header_raw('To')
local reply_to = task:get_header_raw('Reply-To')
if to and reply_to then
- if string.lower(to['value']) ~= string.lower(reply_to['value']) then
+ if string.lower(to) ~= string.lower(reply_to) then
table.foreach(st_replyto, function(i,v) table.insert(spec_st,v) end)
end
end