Re: Failure to extra stable@vger.kernel.org addresses
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- Nov 19, 2012, 23:12 UTC
- Message-ID
- <CAMP44s0f0zYa1FVf9RhNuwYJbkQ7zPwgJ6=ty3c5knjo5a2TNw@mail.gmail.com>
- In-Reply-To
- <20121119225838.GA23412@shrek.podlesie.net>
On Mon, Nov 19, 2012 at 11:58 PM, Krzysztof Mazur <krzysiek@podlesie.net> wrote:
Show 10 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/;
> +Looks fine, but I would do s/(.*?>)(.*)$/$1/, so that 'test <foo@bar.com> <#comment>' gets the second comment removed.
Cheers.
-- Felipe Contreras