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

Re: [PATCH] Add a MIME-Version header to e-mails

From
Karl Hasselström <kha@treskal.com>
Date
Nov 11, 2006, 12:24 UTC
Message-ID
<20061111122403.GC11224@diana.vm.bytemark.co.uk>
In-Reply-To
<b0943d9e0611071109w584f4f7fv3ba1b7dbd9413717@mail.gmail.com>
On 2006-11-07 19:09:06 +0000, Catalin Marinas wrote:
Show 9 quoted lines
> I re-implemented parts of the mail and import commands (inspiring
> from your patches). They now use the email Python package. The mail
> command encodes the body to 7 or 8bit depending on non-ascii
> characters. The headers are QP-encoded. The import command can
> decode messages properly and can also handle multipart e-mails.
>
> I still have to write a test script but my simple tests showed that
> it works. Please let me know if there is anything wrong (especially
> with the QP-encoding of the mail headers).
One potentially hazardous thing: you encode the mail before letting
the user edit it (with the -e and -E switches). This means that the
user can insert non-ascii characters in the body after you've already
decided it's safe to use 7bit encoding. It also means that the user
must be careful to rfc2047-encode any changes to the Subject: and
From: headers.
-- 
Karl Hasselström, kha@treskal.com
Previous: Karl HasselströmNext: Catalin Marinas
Message 9 of 10 in “Re: [PATCH] Allow hand-editing of patches before sending”
  1. Jakub NarebskiNov 5, 2006
  2. Add a MIME-Version header to e-mailsKarl Hasselström, Nov 6, 2006
  3. Karl HasselströmNov 6, 2006
  4. Catalin MarinasNov 7, 2006
  5. Catalin MarinasNov 7, 2006
  6. Karl HasselströmNov 8, 2006
  7. Catalin MarinasNov 8, 2006
  8. Karl HasselströmNov 8, 2006
  9. Karl HasselströmNov 11, 2006
  10. Catalin MarinasNov 16, 2006

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.