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,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 EF8151F8C8 for ; Thu, 16 Sep 2021 07:45:45 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] doc: lei-mail-formats: add "eml" and expand on git things Date: Thu, 16 Sep 2021 07:45:45 +0000 Message-Id: <20210916074545.1172-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: While "eml" is not an output format, it seems worthy to document, here, since users are likely to have experience with *.patch files from "git format-patch". --- Documentation/lei-mail-formats.pod | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/Documentation/lei-mail-formats.pod b/Documentation/lei-mail-formats.pod index da723d2b..3c37c880 100644 --- a/Documentation/lei-mail-formats.pod +++ b/Documentation/lei-mail-formats.pod @@ -51,7 +51,9 @@ with any number of C> characters and is thus fully reversible. This format is emitted by L with gzip. -It is supported by L since git 2.10. +Since git 2.10, C reads this +format. C and C can also +generate this format with the C<--pretty=mboxrd> switch. As with uncompressed L, uncompressed mboxrd are vulnerable to undetectable truncation. @@ -96,6 +98,22 @@ Depending on the IMAP server software and configuration, IMAP servers may use any (or combination) of the aforementioned formats or a non-standard database backend. +=head1 eml + +A single raw message file. C is not an output format for lei, +but accepted by as an C<--input-format> (C<-F>) for read-only +commands such as L and L. + +Since C is the suffix for the C MIME type +(according to the C file), lei will infer the type +based on the C<.eml> suffix if C<--input-format> is unspecified + +C<.patch>-suffixed files generated by L +(without C<--stdout>) are C files with the addition of an +mbox C header. L removes C lines to treat +them as C when reading these for compatibility with +C and similar tools. + =head1 COPYRIGHT Copyright 2021 all contributors L