From: Eric Wong Date: Sat, 18 Apr 2020 03:38:52 +0000 (+0000) Subject: mbox: use per-message line-ending for From_ line X-Git-Tag: v1.5.0~68 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=92de3139920992bfad32ef927153f27addfdc72c 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. --- 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];