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

Re: bug (?) in send email

From
Jeff King <peff@peff.net>
Date
Jul 30, 2012, 16:34 UTC
Message-ID
<20120730163440.GC16701@sigill.intra.peff.net>
In-Reply-To
<7vpq7ds1hu.fsf@alter.siamese.dyndns.org>
On Mon, Jul 30, 2012 at 08:38:21AM -0700, Junio C Hamano wrote:
Show 8 quoted lines
> > I think this patch would be a better match for what RFC2047 specifies.
> > On the one hand it avoids substituting _ outside of encodings, but OTOH
> > it also handles more than one encoded-word.
> 
> Yeah, I think it is an improvement.
> 
> I however wonder if the captured pattern for $2 should be minimized
> with ? at the end, i.e. "..\?q\?(.*?)\?="?

Yeah, definitely. "?=" cannot appear inside (it would need to be quoted).

Show 10 quoted lines
> > It still does not handle
> > the case where there are several encoded-words of *different* encodings,
> > but who would do such a crazy thing?
> 
> Even if somebody did so, it wouldn't have worked, and to make it
> work, the sub and its caller (there is only one caller that actually
> cares what the original encoding was) needs to be rethought anyway,
> so I do not think it matters.
> 
> It may deserve an in-code NEEDSWORK comment, though.

I rambled about this in much more detail in another reply, but the gist of it is that yes, that is the right step for now.

-Peff
Previous: Junio C HamanoNext: Jeff King
Message 5 of 6 in “bug (?) in send email”
  1. Christoph MiebachJul 28, 2012
  2. Christoph MiebachJul 30, 2012
  3. Thomas RastJul 30, 2012
  4. Junio C HamanoJul 30, 2012
  5. Jeff KingJul 30, 2012
  6. Jeff KingJul 30, 2012

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.