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

Re: [PATCH 2/2] send-email: rfc2047-quote subject lines with non-ascii characters

From
TLTeemu Likonen <tlikonen@iki.fi>
Date
Mar 26, 2008, 05:59 UTC
Message-ID
<200803260759.48922.tlikonen@iki.fi>
In-Reply-To
<20080325230321.GB17744@coredump.intra.peff.net>
Jeff King kirjoitti:
Show 5 quoted lines
> We always use 'utf-8' as the encoding, since we currently
> have no way of getting the information from the user.
>
> This also refactors the quoting of recipient names, since
> both processes can share the rfc2047 quoting code.

These patches seem to work except that the quoting of Subject field works only if user types a non-Ascii text to the "What subject should the initial email start with?" prompt. If she changes the subject in editor it won't be rfc2047-quoted.

Thank you anyway, I think we're going to right direction. I think 'git send-mail --compose' is nice way to produce introductory message to patch series. If --compose doesn't support MIME encoding reasonable way, user may have to write and send intro message with real MUA and find out the Message-Id for correct In-Reply-To field for the actual patch series.

E-mail agents KMail and Mutt have setting for preferred encodings for outgoing mail. It's a list of encodings, like "us-ascii,iso-8859-1,utf-8". The first one that fits (including From, To, Cc, Subject, the body, ...?) is used, so there is some kind of detection of content after the message has been composed.

If portable content encoding detection is difficult or considered unnecessary, then I think a documented configurable option is fine (UTF-8 by default).

Previous: Jeff KingNext: Jeff King
Message 2 of 11 in “send-email: rfc2047-quote subject lines with non-ascii characters”
  1. 2/2 send-email: rfc2047-quote subject lines with non-ascii charactersJeff King, Mar 25, 2008
  2. Teemu LikonenMar 26, 2008
  3. Jeff KingMar 26, 2008
  4. Teemu LikonenMar 26, 2008
  5. Jeff KingMar 26, 2008
  6. Teemu LikonenMar 26, 2008
  7. Teemu LikonenMar 26, 2008
  8. Jeff KingMar 26, 2008
  9. Jeff KingMar 26, 2008
  10. Jeff KingMar 27, 2008
  11. Todd ZullingerMar 27, 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.