aboutsummaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-28 12:42:08 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-28 12:42:08 +0100
commitdd09b349b1024c4c5b7329e5a7b84f5f44015a0e (patch)
tree703be49f91f014a3a8c1ad5db952ae60e48be560 /conf
parent169d2260dbf8f130fe59b44c4a16307e1926310f (diff)
downloadrspamd-dd09b349b1024c4c5b7329e5a7b84f5f44015a0e.tar.gz
rspamd-dd09b349b1024c4c5b7329e5a7b84f5f44015a0e.zip
Remove useless subclasses.
Diffstat (limited to 'conf')
-rw-r--r--conf/lua/rspamd.classifiers.lua21
1 files changed, 0 insertions, 21 deletions
diff --git a/conf/lua/rspamd.classifiers.lua b/conf/lua/rspamd.classifiers.lua
index acf07ff68..b9be222f9 100644
--- a/conf/lua/rspamd.classifiers.lua
+++ b/conf/lua/rspamd.classifiers.lua
@@ -31,8 +31,6 @@ local many_recipients_label = 'many recipients'
local undisclosed_recipients_label = 'undisclosed recipients'
local list_label = 'maillist'
local long_subject_label = 'long subject'
-local different_reply_to_label = 'different reply to'
-local has_in_reply_label = 'reply message'
-- Get specific statfiles set based on message rules
local function get_specific_statfiles(classifier, task)
@@ -75,25 +73,6 @@ local function get_specific_statfiles(classifier, task)
table.foreach(st_longsubj, function(i,v) table.insert(spec_st,v) end)
end
end
- -- Reply-To != To
- local st_replyto = classifier:get_statfile_by_label(different_reply_to_label)
- if st_replyto then
- 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) ~= string.lower(reply_to) then
- table.foreach(st_replyto, function(i,v) table.insert(spec_st,v) end)
- end
- end
- end
- -- Has In-Reply-To header
- local st_reply = classifier:get_statfile_by_label(has_in_reply_label)
- if st_reply then
- local inrep_header = task:get_header_raw('In-Reply-To')
- if inrep_header then
- table.foreach(st_reply, function(i,v) table.insert(spec_st,v) end)
- end
- end
if table.maxn(spec_st) > 1 then
return spec_st