Change the scope of the $cc variable as it is not needed outside of send_message.
$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>
This commit is contained in:

committed by
Junio C Hamano

parent
8e3d436b0b
commit
af068d2742
@ -379,7 +379,7 @@ if (@files) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Variables we set as part of the loop over files
|
# 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 {
|
sub extract_valid_address {
|
||||||
my $address = shift;
|
my $address = shift;
|
||||||
@ -420,7 +420,6 @@ sub make_message_id
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
$cc = "";
|
|
||||||
$time = time - scalar $#files;
|
$time = time - scalar $#files;
|
||||||
|
|
||||||
sub unquote_rfc2047 {
|
sub unquote_rfc2047 {
|
||||||
@ -443,6 +442,7 @@ sub send_message
|
|||||||
$gitversion = Git::version();
|
$gitversion = Git::version();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
my $cc = join(", ", unique_email_list(@cc));
|
||||||
my ($author_name) = ($from =~ /^(.*?)\s+</);
|
my ($author_name) = ($from =~ /^(.*?)\s+</);
|
||||||
if ($author_name && $author_name =~ /\./ && $author_name !~ /^".*"$/) {
|
if ($author_name && $author_name =~ /\./ && $author_name !~ /^".*"$/) {
|
||||||
my ($name, $addr) = ($from =~ /^(.*?)(\s+<.*)/);
|
my ($name, $addr) = ($from =~ /^(.*?)(\s+<.*)/);
|
||||||
@ -591,7 +591,6 @@ foreach my $t (@files) {
|
|||||||
$message = "From: $author_not_sender\n\n$message";
|
$message = "From: $author_not_sender\n\n$message";
|
||||||
}
|
}
|
||||||
|
|
||||||
$cc = join(", ", unique_email_list(@cc));
|
|
||||||
|
|
||||||
send_message();
|
send_message();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user