Re: [PATCH] send-email: extend sanitize_address_rfc822 to do rfc2047 quoting
- From
- Sven Verdoolaege <skimo@kotnet.org>
- Date
- Jul 11, 2007, 12:49 UTC
- Message-ID
- <20070711124928.GJ1528MdfPADPa@greensroom.kotnet.org>
- In-Reply-To
- <81b0412b0707110538s7eda05e8g6973e20fc4d91931@mail.gmail.com>
On Wed, Jul 11, 2007 at 02:38:11PM +0200, Alex Riesen wrote:
Show 9 quoted lines
> On 7/11/07, Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de> wrote: > >Try: > > > > my $recipient = 'skimo@kotnet.org'; > > my ($recipient_name, $recipient_addr) = ($recipient =~ > > /^(.*?)(\s+<.*)/); > > print "Hoppla\n" if (!$recipient_name); > > Still wrong. Try it on "0 <0user@buildhost.localnet>"
I was going to suggest using defined($recipient_name) to make it clear, but it won't affect correctness as "0" won't match the regexps in sanitize_address_rfc822 anyway.
skimo