From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id E08FA1FA0C for ; Sat, 18 Apr 2020 03:38:54 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 7/8] mbox: use per-message line-ending for From_ line Date: Sat, 18 Apr 2020 03:38:52 +0000 Message-Id: <20200418033853.9798-8-e@yhbt.net> In-Reply-To: <20200418033853.9798-1-e@yhbt.net> References: <20200418033853.9798-1-e@yhbt.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 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];