Merge branch 'master' of git://people.freedesktop.org/~hausmann/git-p4
[gitweb.git] / git-send-email.perl
index 89f7c36ee527e84a663eb6c6ea51ae9614e0ead9..7552caca4bbbb38b161cfb47f94d4577627ccbb3 100755 (executable)
@@ -410,6 +410,7 @@ sub extract_valid_address {
        return $address if ($address =~ /^($local_part_regexp)$/);
 
        if ($have_email_valid) {
+               $address =~ s/^\s*<(.*)>\s*$/$1/;
                return scalar Email::Valid->address($address);
        } else {
                # less robust/correct than the monster regexp in Email::Valid,