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

Re: Make "git am" properly unescape lines matching ">>*From "

From
HAH. Peter Anvin <hpa@zytor.com>
Date
Jun 8, 2010, 20:54 UTC
Message-ID
<4C0EAE08.60904@zytor.com>
In-Reply-To
<87d3w1jlp0.fsf@yoom.home.cworth.org>
On 06/08/2010 01:47 PM, Carl Worth wrote:
Show 10 quoted lines
> On Tue, 08 Jun 2010 12:57:23 -0700, Carl Worth <cworth@cworth.org> wrote:
>> I'm adding support to notmuch[1] to more easily pipe a thread full of
>> But I noticed that "git am" wasn't removing any of these added '>'
>> characters, so I was getting corrupted commit messages.
> 
> I've also noticed that format-patch is generating bogus mbox files
> without any escaping. (The only way it gets away with this is that
> mailsplit only treats "From " lines as separators if they end with
> something that looks quite a bit like the output of asctime.)
> 

At the same time, it would be a fairly major lose to not be able to generate individual messages easily. I have personally considered the fact that git format-patch produces something-vaguely-like mboxes rather than individual plain RFC 2822 messages to be a bug; fixable by "tail" but annoying.

	-hpa
Previous: Carl WorthNext: Carl Worth
Message 4 of 8 in “mailsplit: Remove any '>' characters used to escape From_ lines in mbox.”
  1. 1/2 mailsplit: Remove any '>' characters used to escape From_ lines in mbox.Carl Worth, Jun 8, 2010
  2. 2/2 Add test from From_-line escaping.Carl Worth, Jun 8, 2010
  3. Carl WorthJun 8, 2010
  4. H. Peter AnvinJun 8, 2010
  5. Carl WorthJun 8, 2010
  6. H. Peter AnvinJun 8, 2010
  7. Carl WorthJun 8, 2010
  8. H. Peter AnvinJun 8, 2010

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.