From dd09b349b1024c4c5b7329e5a7b84f5f44015a0e Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 28 Apr 2015 12:42:08 +0100 Subject: Remove useless subclasses. --- conf/lua/rspamd.classifiers.lua | 21 --------------------- 1 file changed, 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 -- cgit v1.2.3