commit b8c0ebc: [Minor] Arc: Specify explicit order for the headers added
Vsevolod Stakhov
vsevolod at highsecure.ru
Thu Oct 7 08:56:05 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-10-07 09:50:14 +0100
URL: https://github.com/rspamd/rspamd/commit/b8c0ebc33440fe15216a4369c73faa1951e6b244 (HEAD -> master)
[Minor] Arc: Specify explicit order for the headers added
---
src/plugins/lua/arc.lua | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/plugins/lua/arc.lua b/src/plugins/lua/arc.lua
index 0e575c5fd..eeff889f4 100644
--- a/src/plugins/lua/arc.lua
+++ b/src/plugins/lua/arc.lua
@@ -541,7 +541,9 @@ local function arc_sign_seal(task, params, header)
['ARC-Message-Signature'] = {order = 1, value = header},
['ARC-Seal'] = {order = 1, value = lua_util.fold_header(task,
'ARC-Seal', cur_arc_seal) }
- }
+ },
+ -- RFC requires a strict order for these headers to be inserted
+ order = {'ARC-Authentication-Results', 'ARC-Message-Signature', 'ARC-Seal'},
})
task:insert_result(settings.sign_symbol, 1.0,
string.format('%s:s=%s:i=%d', params.domain, params.selector, cur_idx))
More information about the Commits
mailing list