Code

send-email: be more lenient and just catch obvious mistakes.
authorJunio C Hamano <junkio@cox.net>
Tue, 6 Jun 2006 07:05:56 +0000 (00:05 -0700)
committerJunio C Hamano <junkio@cox.net>
Tue, 6 Jun 2006 07:05:56 +0000 (00:05 -0700)
commitad9c18f5045281ddd109c54451f1b4ebfb0d3567
treeb0bc9c61a73b1d9a2f76c095b480d3759ba50dc0
parente96fd30553bb57a76ad38f703a3fea5b53c45ff9
send-email: be more lenient and just catch obvious mistakes.

This cleans up the pattern matching subroutine by introducing
two variables to hold regexp to approximately match local-part
and domain in the e-mail address.  It is meant to catch obvious
mistakes with a cheap check.

The patch also moves "scalar" to force Email::Valid->address()
to work in !wantarray environment to extract_valid_address;
earlier it was in the caller of the subroutine, which was way
too error prone.

Signed-off-by: Junio C Hamano <junkio@cox.net>
git-send-email.perl