Re: Failure to extra stable@vger.kernel.org addresses
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- Nov 20, 2012, 22:06 UTC
- Message-ID
- <CAMP44s3+vnKfhhh=qqU2vuKvWwhii4CQ7=YAuhFiceX1EDaVKQ@mail.gmail.com>
- In-Reply-To
- <20121120212126.GA12656@shrek.podlesie.net>
On Tue, Nov 20, 2012 at 10:21 PM, Krzysztof Mazur <krzysiek@podlesie.net> wrote:
Show 9 quoted lines
> --- a/git-send-email.perl
> +++ b/git-send-email.perl
> @@ -924,6 +924,10 @@ sub quote_subject {
> # use the simplest quoting being able to handle the recipient
> sub sanitize_address {
> my ($recipient) = @_;
> +
> + # remove garbage after email address
> + $recipient =~ s/(.*?<[^>]*>).*$/$1/;That won't work for 'foo@bar.com # test'. I think we should abandon hopes of properly parsing an email address and just do:
$recipient =~ s/(.*?) #.*$/$1/;
Cheers.
-- Felipe Contreras