]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Dmarc: Fold header using specific newline type
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 14 Dec 2021 16:41:14 +0000 (16:41 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 14 Dec 2021 16:41:14 +0000 (16:41 +0000)
lualib/plugins/dmarc.lua

index 7834472423729e6c906219ba3447ede3912238b7..c72b688240c14f07ba7e51bff43f5186d449f092 100644 (file)
@@ -197,10 +197,10 @@ exports.gen_munging_callback = function(munging_opts, settings)
 
     local hdr_encoded = rspamd_util.fold_header('From',
         rspamd_util.mime_header_encode(string.format('%s <%s>',
-            via_name, via_addr)))
+            via_name, via_addr)), task:get_newlines_type())
     local orig_from_encoded = rspamd_util.fold_header('X-Original-From',
         rspamd_util.mime_header_encode(string.format('%s <%s>',
-            from.name or '', from.addr)))
+            from.name or '', from.addr)), task:get_newlines_type())
     local add_hdrs = {
       ['From'] = { order = 1, value = hdr_encoded },
     }