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

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

From
SVSven Verdoolaege <skimo@kotnet.org>
Date
Jul 11, 2007, 12:08 UTC
Message-ID
<20070711120807.GH1528MdfPADPa@greensroom.kotnet.org>
In-Reply-To
<20070711114909.GA14086@informatik.uni-freiburg.de>
On Wed, Jul 11, 2007 at 01:49:09PM +0200, Uwe Kleine-König wrote:
Show 11 quoted lines
> Sven Verdoolaege wrote:
> > On Tue, Jul 10, 2007 at 07:02:43PM +0200, Uwe Kleine-König wrote:
> > >  	my ($recipient) = @_;
> > > -	my ($recipient_name) = ($recipient =~ /^(.*?)\s+</);
> > > +	my ($recipient_name, $recipient_addr) = ($recipient =~ /^(.*?)(\s+<.*)/);
> > > +
> > > +	if ($recipient_name && $recipient_name =~ /[^-a-zA-Z0-9!*+\/ ]/ && $recipient_name !~ /=\?utf-8\?q?.*\?=/) {
> > 
> > Why the extra test for truthness of $recipient_name ?
> 
> i.e. if the pattern doesn't match, recipient_name is undefined.

I know. I just didn't realize git-send-email was run with -w. Sorry for the noise.

skimo
Previous: Uwe Kleine-KönigNext: Sven Verdoolaege
Message 6 of 7 in “send-email: extend sanitize_address_rfc822 to do rfc2047 quoting”
  1. send-email: extend sanitize_address_rfc822 to do rfc2047 quotingUwe Kleine-König, Jul 10, 2007
  2. [RFC] send-email: honor --suppress-from --signed-off-ccUwe Kleine-König, Jul 10, 2007
  3. Uwe Kleine-KönigJul 11, 2007
  4. Sven VerdoolaegeJul 11, 2007
  5. Uwe Kleine-KönigJul 11, 2007
  6. Sven VerdoolaegeJul 11, 2007
  7. Sven VerdoolaegeJul 11, 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.