summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8e3d436)
raw | patch | inline | side by side (parent: 8e3d436)
author | Robin H. Johnson <robbat2@gentoo.org> | |
Thu, 26 Apr 2007 02:37:18 +0000 (19:37 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 26 Apr 2007 04:03:03 +0000 (21:03 -0700) |
$cc is only used inside the send_message scope, so lets clean it out of the global scope.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
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 36795c8bddc597e44f6e2193eab38359725a83d6..ad83009e236c4b8be2fa0b4204ed340c0e205de5 100755 (executable)
--- a/git-send-email.perl
+++ b/git-send-email.perl
}
# Variables we set as part of the loop over files
-our ($message_id, $cc, %mail, $subject, $reply_to, $references, $message);
+our ($message_id, %mail, $subject, $reply_to, $references, $message);
sub extract_valid_address {
my $address = shift;
-$cc = "";
$time = time - scalar $#files;
sub unquote_rfc2047 {
$gitversion = Git::version();
}
- my ($author_name) = ($from =~ /^(.*?)\s+</);
+ my $cc = join(", ", unique_email_list(@cc));
+my ($author_name) = ($from =~ /^(.*?)\s+</);
if ($author_name && $author_name =~ /\./ && $author_name !~ /^".*"$/) {
my ($name, $addr) = ($from =~ /^(.*?)(\s+<.*)/);
$from = "\"$name\"$addr";
$message = "From: $author_not_sender\n\n$message";
}
- $cc = join(", ", unique_email_list(@cc));
send_message();