git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Re: git-am: less strong format "mbox" detection

From
NSNicolas Sebrecht <nicolas.s.dev@gmx.fr>
Date
Jul 14, 2009, 08:20 UTC
Message-ID
<20090714082059.GA13808@vidovic>
In-Reply-To
<cb7bb73a0907140016r4807c008h9c98f76200e9c3a5@mail.gmail.com>
Le 14/07/09, Giuseppe Bilotta a écrit :
Show 15 quoted lines
> > diff --git a/git-am.sh b/git-am.sh
> > index d64d997..d10a8e0 100755
> > --- a/git-am.sh
> > +++ b/git-am.sh
> > @@ -169,7 +169,7 @@ check_patch_format () {
> >                read l2
> >                read l3
> >                case "$l1" in
> > -               "From "* | "From: "*)
> > +               "From "* | "From: "* | "X-Account-Key:"* | "Return-Path:"* | "Delivered-To:"*)
> 
> Nitpick: for consistency, should we either expect a space after the
> colon also in the new keys, or not expect i in the From: key either. I
> don't think the RFC requires a space, but most clients probably add
> it.
RFC 822 says:
     
" 3.4.2. WHITE SPACE
     
  Note:  In structured field bodies, multiple linear space ASCII
         characters  (namely  HTABs  and  SPACEs) are treated as
         single spaces and may freely surround any  symbol.   In
         all header fields, the only place in which at least one
         LWSP-char is REQUIRED is at the beginning of  continua-
         tion lines in a folded field.
"

A trailing space after the colon is not required. I'll remove it and resend a patch.

And why should we accept "From "?
-- 
Nicolas Sebrecht
Previous: Giuseppe BilottaNext: Johannes Sixt
Message 3 of 10 in “git-am: less strong format "mbox" detection”
  1. git-am: less strong format "mbox" detectionNicolas Sebrecht, Jul 14, 2009
  2. Giuseppe BilottaJul 14, 2009
  3. Re: git-am: less strong format "mbox" detectionNicolas Sebrecht, Jul 14, 2009
  4. Johannes SixtJul 14, 2009
  5. Junio C HamanoJul 14, 2009
  6. Re: git-am: less strong format "mbox" detectionNicolas Sebrecht, Jul 14, 2009
  7. git-am: fix maildir support regression for unordered headers in emailsNicolas Sebrecht, Jul 15, 2009
  8. Junio C HamanoJul 15, 2009
  9. Derek FawcusJul 15, 2009
  10. Re: git-am: fix maildir support regression for unordered headers in emailsNicolas Sebrecht, Jul 15, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.