diff options
author | Andrew Lewis <nerf@judo.za.org> | 2017-06-23 21:11:53 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2017-06-23 21:11:53 +0200 |
commit | 70a20719f6ca31d001a3e652818b2a9f1cbbc99e (patch) | |
tree | 039c0f6ce9563f2f96477fc3f251dd6390141c5c /src/plugins/lua/milter_headers.lua | |
parent | 4cccd433d40e51c65504aa6faff84c3226c6eca9 (diff) | |
download | rspamd-70a20719f6ca31d001a3e652818b2a9f1cbbc99e.tar.gz rspamd-70a20719f6ca31d001a3e652818b2a9f1cbbc99e.zip |
[Minor] Milter headers: s/x-spam-flag/x-spam/
Diffstat (limited to 'src/plugins/lua/milter_headers.lua')
-rw-r--r-- | src/plugins/lua/milter_headers.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/lua/milter_headers.lua b/src/plugins/lua/milter_headers.lua index d568a8fe3..bdf246a5a 100644 --- a/src/plugins/lua/milter_headers.lua +++ b/src/plugins/lua/milter_headers.lua @@ -39,8 +39,8 @@ local settings = { header = 'X-Spamd-Result', remove = 1, }, - ['x-spam-flag'] = { - header = 'X-Spam-Flag', + ['x-spam'] = { + header = 'X-Spam', remove = 1, value = 'Yes', }, @@ -259,8 +259,8 @@ local function milter_headers(task) spam_header('spam-header', settings.routines['spam-header'].header, settings.routines['spam-header'].value, settings.routines['spam-header'].remove) end - routines['x-spam-flag'] = function() - spam_header('x-spam-flag', settings.routines['x-spam-flag'].header, settings.routines['x-spam-flag'].value, settings.routines['x-spam-flag'].remove) + routines['x-spam'] = function() + spam_header('x-spam', settings.routines['x-spam'].header, settings.routines['x-spam'].value, settings.routines['x-spam'].remove) end routines['x-virus'] = function() @@ -399,7 +399,7 @@ if opts['extended_spam_headers'] then activate_routine('x-spamd-result') activate_routine('x-rspamd-server') activate_routine('x-rspamd-queue-id') - activate_routine('x-spam-flag') + activate_routine('x-spam') end if type(opts['use']) == 'string' then opts['use'] = {opts['use']} |