]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Remove dead code
authorAndrew Lewis <nerf@judo.za.org>
Wed, 21 Jun 2017 10:18:59 +0000 (12:18 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Wed, 21 Jun 2017 10:18:59 +0000 (12:18 +0200)
src/plugins/lua/milter_headers.lua

index a2bc8a97d1e97aa2abf81026d2b27800c0889e04..d568a8fe32c3fb0ae7070a97f70c4941ec09c57e 100644 (file)
@@ -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