summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5806324)
raw | patch | inline | side by side (parent: 5806324)
author | Ryan Anderson <rda@google.com> | |
Mon, 29 May 2006 19:30:14 +0000 (12:30 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 30 May 2006 06:15:37 +0000 (23:15 -0700) |
(Also, kill off an accidentally created warning.)
Signed-off-by: Ryan Anderson <rda@google.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Ryan Anderson <rda@google.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-send-email.perl | patch | blob | history |
diff --git a/git-send-email.perl b/git-send-email.perl
index 85ec5df13ab1cb5868ab781e8b68d283f006e020..d418d6c5d2230fde2e201d31ff82dc5e26e79a9a 100755 (executable)
--- a/git-send-email.perl
+++ b/git-send-email.perl
} else {
# less robust/correct than the monster regexp in Email::Valid,
# but still does a 99% job, and one less dependency
- return ($address =~ /([^\"<>\s]+@[^<>\s]+)/);
+ my $cleaned_address;
+ if ($address =~ /([^\"<>\s]+@[^<>\s]+)/) {
+ $cleaned_address = $1;
+ }
+ return $cleaned_address;
}
}
}
$reply_to = $initial_reply_to;
+$references = $initial_reply_to;
make_message_id();
$subject = $initial_subject;