From: Andrew Lewis Date: Wed, 21 Jun 2017 10:18:59 +0000 (+0200) Subject: [Minor] Remove dead code X-Git-Tag: 1.6.2~94 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=61fd1b44d2e0ea63e58b1ad4fa8d453b94ad9995;p=rspamd.git [Minor] Remove dead code --- diff --git a/src/plugins/lua/milter_headers.lua b/src/plugins/lua/milter_headers.lua index a2bc8a97d..d568a8fe3 100644 --- a/src/plugins/lua/milter_headers.lua +++ b/src/plugins/lua/milter_headers.lua @@ -241,20 +241,6 @@ local function milter_headers(task) add[settings.routines['x-spam-level'].header] = string.rep(settings.routines['x-spam-level'].char, score) end - routines['spam-header'] = function() - if skip_wanted('x-spam-flag') then return end - if not common['metric_action'] then - common['metric_action'] = task:get_metric_action('default') - end - if settings.routines['x-spam-flag'].remove then - remove[settings.routines['x-spam-flag'].header] = settings.routines['x-spam-flag'].remove - end - local action = common['metric_action'] - if action ~= 'no action' and action ~= 'greylist' then - add[settings.routines['spam-header'].header] = settings.routines['x-spam-flag'].value - end - end - local function spam_header (class, name, value, remove_v) if skip_wanted(class) then return end if not common['metric_action'] then