commit f66453c: [Project] Dmarc: Fix header removal
Vsevolod Stakhov
vsevolod at highsecure.ru
Wed Mar 24 11:28:05 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-03-24 11:23:26 +0000
URL: https://github.com/rspamd/rspamd/commit/f66453cf8e22c97ca0504b5e0a67effb569dbb34 (HEAD -> master)
[Project] Dmarc: Fix header removal
---
src/plugins/lua/dmarc.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/plugins/lua/dmarc.lua b/src/plugins/lua/dmarc.lua
index f6793745b..cb5a58502 100644
--- a/src/plugins/lua/dmarc.lua
+++ b/src/plugins/lua/dmarc.lua
@@ -1587,7 +1587,7 @@ if opts.munging then
add_hdrs['X-Original-From'] = { order = 0, value = orig_from_encoded}
lua_mime.modify_headers(task, {
- remove = {['From'] = {0}},
+ remove = {['From'] = 0},
add = add_hdrs
})
lua_util.debugm(N, task, 'munged DMARC header for %s: %s -> %s',
More information about the Commits
mailing list