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

Re: [PATCH] git-format-patch, git-send-email: generate/handle escaped >From

From
Paolo Bonzini <paolo.bonzini@gmail.com>
Date
Jun 11, 2009, 11:58 UTC
Message-ID
<4A30F16C.5040207@gmail.com>
In-Reply-To
<20090611105538.GA4409@coredump.intra.peff.net>
Show 5 quoted lines
> But of course, which conversion you want depends entirely on what you
> are going to feed it to, and which mbox they are expecting. Which is why
> it really should be configurable.
> 
> Your use case looks to be feeding it to send-email

Almost, :-) because git-send-email does not support sending multiple messages out of one mbox file. I have an upcoming patch to add this support, and I was just "feeling the waters" before posting it.

Show 8 quoted lines
> I suspect you would
> be better served by improving the 'From ' detection in send-email,
> probably to something like:
> 
>   /^From \S+ \w{3} \w{3} \d+ \d\d:\d\d:\d\d \d+/
> 
> though that may be too strict. It would probably make sense to steal one
> from one of the many mbox-reading CPAN modules.

Good idea. I'll let others speak and can make this configurable (as well as use the s/^>*From />&/ conversion), but if no one speaks, I'll change my git-send-email patch to use the above regex or a similar one, and withdraw this patch.

Thanks for the prompt remark!
Paolo
Previous: Jeff KingNext: Paolo Bonzini
Message 3 of 4 in “git-format-patch, git-send-email: generate/handle escaped >From”
  1. git-format-patch, git-send-email: generate/handle escaped >FromPaolo Bonzini, Jun 11, 2009
  2. Jeff KingJun 11, 2009
  3. Paolo BonziniJun 11, 2009
  4. Paolo BonziniJun 28, 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.