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

Re: Is git am supposed to decode MIME?

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 4, 2017, 10:10 UTC
Message-ID
<xmqqzi979qbe.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<24940e12-3f72-1ef0-0983-58523d8dec51@redhat.com>
Florian Weimer <fweimer@redhat.com> writes:
Show 9 quoted lines
> The git am documentation talks about “mailboxes”.  I suppose these
> contain messages in Internet Mail syntax.  Is git am supposed to
> decode MIME?
>
> I'm asking because I have a message whose body is encoded as
> quoted-printable, but git am does not parse the patch contained in it.
>
> If git am is supposed to deal with this, I'll dig deeper and try to
> figure out where things go wrong.

The code to check should be in <mailinfo.c>. As its comment says, the code was not designed to be a full MIME parser--we just have a code that (empirically) works in practice on messages produced when a patch is attached to a message via popular MUAs, not written from the MIME RFC spec.

Thanks for your interest in making the world a better place ;-) Very much appreciated.

Previous: Florian Weimer
Message 4 of 4 in “Is git am supposed to decode MIME?”
  1. Florian WeimerOct 4, 2017
  2. Jeff KingOct 4, 2017
  3. Florian WeimerOct 12, 2017
  4. Junio C HamanoOct 4, 2017

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.