1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-05-05 21:06:11 +02:00

send-email: do not leave an empty CC: line if no cc is present.

Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Junio C Hamano 2007-04-16 16:51:47 -07:00
parent ca135e7acc
commit f06a6a493a

View File

@ -446,9 +446,12 @@ sub send_message
my ($name, $addr) = ($from =~ /^(.*?)(\s+<.*)/);
$from = "\"$name\"$addr";
}
my $ccline = "";
if ($cc ne '') {
$ccline = "\nCc: $cc";
}
my $header = "From: $from
To: $to
Cc: $cc
To: $to${ccline}
Subject: $subject
Date: $date
Message-Id: $message_id