aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/arc.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/plugins/lua/arc.lua b/src/plugins/lua/arc.lua
index e066613e9..d5ee1b514 100644
--- a/src/plugins/lua/arc.lua
+++ b/src/plugins/lua/arc.lua
@@ -483,9 +483,15 @@ local function arc_sign_seal(task, params, header)
sha_ctx:update(s)
lua_util.debugm(N, task, 'initial update signature with header: %s', s)
+ local nl_type = 'crlf'
+ if task:has_flag("milter") then
+ nl_type = "lf"
+ else
+ nl_type = task:get_newlines_type()
+ end
local sig = rspamd_rsa.sign_memory(privkey, sha_ctx:bin())
cur_arc_seal = string.format('%s%s', cur_arc_seal,
- sig:base64())
+ sig:base64(70, nl_type))
task:set_milter_reply({
add_headers = {