diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-02-13 13:43:09 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-02-13 13:43:09 +0000 |
commit | ebe42b77f5dbdab9d91e929a315951f14a77d545 (patch) | |
tree | c3157ae6796dee7361589399b8ecdbfabd1d080a | |
parent | 9389d491a376c3900aae12005099fc6b53bd45ce (diff) | |
download | rspamd-ebe42b77f5dbdab9d91e929a315951f14a77d545.tar.gz rspamd-ebe42b77f5dbdab9d91e929a315951f14a77d545.zip |
[Minor] Remove all headers with the specific name, not just the first one
-rw-r--r-- | src/plugins/lua/milter_headers.lua | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/plugins/lua/milter_headers.lua b/src/plugins/lua/milter_headers.lua index 037a0fa13..332625d7c 100644 --- a/src/plugins/lua/milter_headers.lua +++ b/src/plugins/lua/milter_headers.lua @@ -43,23 +43,23 @@ local settings = { }, ['add-headers'] = { headers = {}, - remove = 1, + remove = 0, }, ['remove-header'] = { - remove = 1, + remove = 0, }, ['x-spamd-result'] = { header = 'X-Spamd-Result', - remove = 1, + remove = 0, stop_chars = ' ' }, ['x-rspamd-server'] = { header = 'X-Rspamd-Server', - remove = 1, + remove = 0, }, ['x-rspamd-queue-id'] = { header = 'X-Rspamd-Queue-Id', - remove = 1, + remove = 0, }, ['remove-spam-flag'] = { header = 'X-Spam', @@ -67,11 +67,11 @@ local settings = { ['spam-header'] = { header = 'Deliver-To', value = 'Junk', - remove = 1, + remove = 0, }, ['x-virus'] = { header = 'X-Virus', - remove = 1, + remove = 0, status_clean = nil, status_infected = nil, status_fail = nil, @@ -83,20 +83,20 @@ local settings = { positive = '+', negative = '-', neutral = '/', - remove = 1, + remove = 0, }, ['x-spam-level'] = { header = 'X-Spam-Level', char = '*', - remove = 1, + remove = 0, }, ['x-spam-status'] = { header = 'X-Spam-Status', - remove = 1, + remove = 0, }, ['authentication-results'] = { header = 'Authentication-Results', - remove = 1, + remove = 0, spf_symbols = { pass = 'R_SPF_ALLOW', fail = 'R_SPF_FAIL', @@ -127,7 +127,7 @@ local settings = { }, ['stat-signature'] = { header = 'X-Stat-Signature', - remove = 1, + remove = 0, }, ['fuzzy-hashes'] = { header = 'X-Rspamd-Fuzzy', @@ -353,7 +353,7 @@ local function milter_headers(task) end routines['remove-spam-flag'] = function() - remove[settings.routines['remove-spam-flag'].header] = 1 + remove[settings.routines['remove-spam-flag'].header] = 0 end routines['x-virus'] = function() |