From: Krzysztof Mazur Date: Mon, 19 Nov 2012 15:18:45 GMT Subject: Re: Failure to extra stable@vger.kernel.org addresses Message-ID: <20121119151845.GA29678@shrek.podlesie.net> In-Reply-To: <20121119095747.GA13552@arwen.pp.htv.fi> On Mon, Nov 19, 2012 at 11:57:47AM +0200, Felipe Balbi wrote: > Hi guys, > > for whatever reason my git has started acting up with > stable@vger.kernel.org addresses. It doesn't manage to extract a valid > adress from the string: > > Cc: # v3.4 v3.5 v3.6 > > Removing the comment at the end of the line makes things work again. I > do remember, however, seeing this working since few weeks back I sent a > mail to stable (in fact the same one I'm using to test), so this could > be related to some perl updates, who knows ?!? You probably just installed Email::Valid package. The current git-send-email works a little better and just prints an error: W: unable to extract a valid address from: #v3.4 v3.5 v3.6 This patch should fix the problem, now after any garbage is removed while extracting address. diff --git a/git-send-email.perl b/git-send-email.perl index 5a7c29d..bb659da 100755 --- a/git-send-email.perl +++ b/git-send-email.perl @@ -828,7 +828,7 @@ sub extract_valid_address { # check for a local address: return $address if ($address =~ /^($local_part_regexp)$/); - $address =~ s/^\s*<(.*)>\s*$/$1/; + $address =~ s/^\s*<(.*)>.*$/$1/; if ($have_email_valid) { return scalar Email::Valid->address($address); } else { Krzysiek