From: Nicolas Sebrecht <nicolas.s.dev@gmx.fr>
To: Junio C Hamano <gitster@pobox.com>
Cc: Nicolas Sebrecht <nicolas.s.dev@gmx.fr>,
Giuseppe Bilotta <giuseppe.bilotta@gmail.com>,
git@vger.kernel.org
Subject: [PATCH] Re: git-am: less strong format "mbox" detection
Date: Tue, 14 Jul 2009 14:23:54 +0200 [thread overview]
Message-ID: <20090714122354.GA13806@vidovic> (raw)
In-Reply-To: <7v8wirirki.fsf@alter.siamese.dyndns.org>
The 14/07/09, Junio C Hamano wrote:
> Nicolas Sebrecht <nicolas.s.dev@gmx.fr> writes:
>
> > And why should we accept "From "?
>
> You are going totally in a wrong way around with this.
>
> Berkeley mbox format is what we support, and "From " is the _only_
> delimiter between pieces of e-mail in the file. We happen to allow "From:
> " in order to merely be extra nice for people who create mbox looking file
> by hand; I think it is an improvement not to require an optional SP after
> the colon there, but that is totally an independent issue.
I see, thank you.
> I cannot offhand say if allowing anything but "From:" is necessarily an
> improvement, or making the format detection unnecessarily risky of
> misidentification. I do not particularly like the idea of allowing only
> some randomly selected fields like Return-Path and Delibered-To and not
> accepting others, let alone totally nonstandard X-Foo fields.
I'll look at the source closer to know how it can be done the smart way.
As the manual of git-am says it accepts maildir format too (checked
now), we have a regression since
a5a6755a1d4707bf2fab7752e5c974ebf63d086a
in case of maildir _and_ "verbatim" emails starting with anything else that
"From " or "From: ".
I think the RFC doesn't require any fixed order for the header fields
(will check). So, I'm not very optimist because format detection starts
with
read l1
read l2
read l3
wich doesn't help to make a difference between mailbox and maildir.
--
Nicolas Sebrecht
next prev parent reply other threads:[~2009-07-14 12:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-14 6:40 [PATCH] git-am: less strong format "mbox" detection Nicolas Sebrecht
2009-07-14 7:16 ` Giuseppe Bilotta
2009-07-14 8:20 ` [PATCH] " Nicolas Sebrecht
2009-07-14 8:35 ` Johannes Sixt
2009-07-14 8:42 ` Junio C Hamano
2009-07-14 12:23 ` Nicolas Sebrecht [this message]
2009-07-15 5:52 ` [PATCH v2] git-am: fix maildir support regression for unordered headers in emails Nicolas Sebrecht
2009-07-15 7:27 ` Junio C Hamano
2009-07-15 12:54 ` Derek Fawcus
2009-07-15 16:19 ` [PATCH v2] " Nicolas Sebrecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090714122354.GA13806@vidovic \
--to=nicolas.s.dev@gmx.fr \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=giuseppe.bilotta@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).