summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: af83bed)
raw | patch | inline | side by side (parent: af83bed)
author | Greg KH <greg@kroah.com> | |
Fri, 13 Jul 2007 04:17:49 +0000 (21:17 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 13 Jul 2007 05:48:54 +0000 (22:48 -0700) |
When using git-send-email.perl on a changeset that has:
Cc: <stable@kernel.org>
in the body of the description, and the Email::Valid perl module is
installed on the system, the email address will be deemed "invalid" for
some reason (Email::Valid isn't smart enough to handle this?) and
complain and not send the address the email.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Cc: <stable@kernel.org>
in the body of the description, and the Email::Valid perl module is
installed on the system, the email address will be deemed "invalid" for
some reason (Email::Valid isn't smart enough to handle this?) and
complain and not send the address the email.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-send-email.perl | patch | blob | history |
diff --git a/git-send-email.perl b/git-send-email.perl
index 89f7c36ee527e84a663eb6c6ea51ae9614e0ead9..a847d5ed5240ed92240dbba87447f37d21a04d4c 100755 (executable)
--- a/git-send-email.perl
+++ b/git-send-email.perl
return $address if ($address =~ /^($local_part_regexp)$/);
if ($have_email_valid) {
+ $address =~ s/^<(.*)>$/$1/;
return scalar Email::Valid->address($address);
} else {
# less robust/correct than the monster regexp in Email::Valid,