]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Project] Dmarc: Fix header removal
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 24 Mar 2021 11:23:26 +0000 (11:23 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 24 Mar 2021 11:23:26 +0000 (11:23 +0000)
src/plugins/lua/dmarc.lua

index f6793745bd72cb287b0b0f3ff0e2af300cbe745e..cb5a585022ea1e9f4f19dc00ea997af57dcf5d66 100644 (file)
@@ -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',