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

Re: [PATCH] Make git-mailinfo strip whitespace from the start of the mail file.

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 1, 2007, 22:26 UTC
Message-ID
<7vr6j98uw5.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<981e6de60711011441n5bef772cuda381c539c0a2603@mail.gmail.com>
"Simon Sasburg" <simon.sasburg@gmail.com> writes:
Show 17 quoted lines
>> Just to help me understand why this change is needed...
>>
>> Are you using mailinfo directly without splitting with mailsplit
>> first?
>
> Well, when using gmail's web interface, when reading a mail, there is
> this option to show the raw mail text (headers+body) with the 'show
> original' option.
>
> If you do 'save as..' in your browser to save what you get with that,
> and try to do git-am on that file, it fails because it starts with
> some whitespace.
>
> With this patch git-am works on these files.
>
> So, i'm not using mailsplit or any other mail tools at all, just my
> browser and git.

Ah, I meant "git-mailsplit", which is the command internally run by "git-am" to preprocess the file and to split it into individual mail pieces to be fed to "git-mailinfo".

That may suggest the change is better done in git-mailsplit not git-mailinfo.

Or perhaps both.
Previous: Simon SasburgNext: Simon Sasburg
Message 4 of 7 in “Make git-mailinfo strip whitespace from the start of the mail file.”
  1. Make git-mailinfo strip whitespace from the start of the mail file.Simon Sasburg, Nov 1, 2007
  2. Junio C HamanoNov 1, 2007
  3. Simon SasburgNov 1, 2007
  4. Junio C HamanoNov 1, 2007
  5. Make git-mailsplit strip whitespace from the start of the mailbox file.Simon Sasburg, Nov 1, 2007
  6. Junio C HamanoNov 2, 2007
  7. Make git-mailsplit strip whitespace from the start of the mailbox file.Simon Sasburg, Nov 4, 2007

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.