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

Re: [PATCH] send-email: let sanitize_address_rfc822 do rfc2047 quoting

From
Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de>
Date
Aug 6, 2007, 08:33 UTC
Message-ID
<20070806083341.GA6625@informatik.uni-freiburg.de>
In-Reply-To
<f95pie$8lv$1@sea.gmane.org>
Hello Jakub,
Jakub Narebski wrote:
Show 9 quoted lines
> > The former version tried to fix-up the real name part with double quotes
> > if it includes a '.'.  I removed this as rfc2047 can handle a dot, too.
> 
> Not nice. I'd rather use double quotes if rfc2047 is not needed.
> It means:
>  - no quotes for us-ascii name, without '.'
>  - quotes for us-ascii name with '.' and perhaps other forbidden characters
>    like '"' or something
>  - full rfc2047 quoting if name contains characters outside us-ascii.

Well, that is OK for me, too. I just thought to do just one thing that is able to handle all cases. So the code is easier to read and most of the time you don't see the quoted result anyhow.

I will follow up with a new version later that will leave the second part out. I don't know which chars can be quoted by "...", is it more than .?

Best regards Uwe

-- 
Uwe Kleine-König

http://www.google.com/search?q=1+stone%3D
Previous: Jakub NarebskiNext: Uwe Kleine-König
Message 3 of 5 in “send-email: let sanitize_address_rfc822 do rfc2047 quoting”
  1. send-email: let sanitize_address_rfc822 do rfc2047 quotingUwe Kleine-König, Aug 5, 2007
  2. Jakub NarebskiAug 6, 2007
  3. Uwe Kleine-KönigAug 6, 2007
  4. send-email: teach sanitize_address to do rfc2047 quotingUwe Kleine-König, Aug 6, 2007
  5. Uwe Kleine-KönigAug 9, 2007

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.