From 92de3139920992bfad32ef927153f27addfdc72c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 18 Apr 2020 03:38:52 +0000 Subject: [PATCH] mbox: use per-message line-ending for From_ line Email::Simple preserves the message line ending in headers, so make the From_ line consistent with the rest of the headers. --- lib/PublicInbox/Mbox.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/Mbox.pm b/lib/PublicInbox/Mbox.pm index d5beceaf..16de1a72 100644 --- a/lib/PublicInbox/Mbox.pm +++ b/lib/PublicInbox/Mbox.pm @@ -106,7 +106,7 @@ sub msg_hdr ($$;$) { 'List-Post', "{-primary_address}>", ); my $crlf = $header_obj->crlf; - my $buf = "From mboxrd\@z Thu Jan 1 00:00:00 1970\n" . + my $buf = 'From mboxrd@z Thu Jan 1 00:00:00 1970' . $crlf . $header_obj->as_string; for (my $i = 0; $i < @append; $i += 2) { my $k = $append[$i]; -- 2.44.0