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

Re: [StGit PATCH] mail: Use space rather than tab for long header folding

From
Karl Wiberg <kha@treskal.com>
Date
Feb 12, 2010, 16:09 UTC
Message-ID
<b8197bcb1002120809q5eb458f7pa9e9b0562af6bcda@mail.gmail.com>
In-Reply-To
<20100212153905.11578.83879.stgit@pc1117.cambridge.arm.com>

On Fri, Feb 12, 2010 at 4:39 PM, Catalin Marinas <catalin.marinas@arm.com> wrote:

Show 5 quoted lines
> The default Python implementation (at least 2.5 and earlier) fold long
> e-mail header lines by inserting "\n\t". This causes issues with some
> e-mail clients that remove both "\n\t". The RFC2822 shows that folding
> should be done with "\n ". The Python workaround is to use a Header
> object instead of a string when setting the message headers.

Aha. If this works like I think it does, it'll eliminate the problem where patches with long subject lines pick up tab characters when imported from e-mails. But that's not the motivation you're describing, is it?

-- 
Karl Wiberg, kha@treskal.com
   subrabbit.wordpress.com
   www.treskal.com/kalle
Previous: Catalin MarinasNext: Catalin Marinas
Message 2 of 3 in “mail: Use space rather than tab for long header folding”
  1. mail: Use space rather than tab for long header foldingCatalin Marinas, Feb 12, 2010
  2. Karl WibergFeb 12, 2010
  3. Catalin MarinasFeb 12, 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.