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

Re: [PATCH 1/3] mailinfo: ensure handle_filter gets only one line at a time

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 16, 2008, 06:22 UTC
Message-ID
<7vir0pe7yg.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<7vmyq1e86n.fsf@gitster.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 5 quoted lines
> The function is intended to be fed one logical line at a time to
> inspect, but a QP encoded raw input line can have more than one
> lines, just like BASE64 encoded one.
>
> Quoting LF as =0A may be unusual but RFC2045 allows it.
Well, this is a bit dark-gray.

The canonical line ending CRLF should not be represented as =0A and the intention of RFC2045 seems to allow =0A only as part of binary contents. So strictly speaking this may not be needed, but there may always be not quite conforming MUA that would break the assumption and would bite us, so we'd better be safe than sorry.

Previous: Junio C HamanoNext: Jay Soffian
Message 7 of 8 in “mailinfo: ensure handle_filter gets only one line at a time”
  1. 1/3 mailinfo: ensure handle_filter gets only one line at a timeJay Soffian, Feb 15, 2008
  2. 2/3 mailinfo: support rfc3676 (format=flowed) text/plain messagesJay Soffian, Feb 15, 2008
  3. 3/3 test mailinfo rfc3676 supportJay Soffian, Feb 15, 2008
  4. Junio C HamanoFeb 15, 2008
  5. Jay SoffianFeb 15, 2008
  6. Junio C HamanoFeb 16, 2008
  7. Junio C HamanoFeb 16, 2008
  8. Jay SoffianFeb 16, 2008

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.