summaryrefslogtreecommitdiff
path: root/git-send-email.perl
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2009-10-18 23:01:37 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-10-18 23:01:37 -0700
commitee50af1566e78354c1a2d0feea2115b99a535d9d (patch)
tree942cda2070defae0ea2f846ff8f349d271493e4f /git-send-email.perl
parentMerge branch 'cc/replace-no-replace' (diff)
parentgit-send-email.perl: fold multiple entry "Cc:" and multiple single line "RCPT... (diff)
downloadtgif-ee50af1566e78354c1a2d0feea2115b99a535d9d.tar.xz
Merge branch 'jp/maint-send-email-fold'
* jp/maint-send-email-fold: git-send-email.perl: fold multiple entry "Cc:" and multiple single line "RCPT TO:"s
Diffstat (limited to 'git-send-email.perl')
-rwxr-xr-xgit-send-email.perl6
1 files changed, 4 insertions, 2 deletions
diff --git a/git-send-email.perl b/git-send-email.perl
index f5ba4e7699..a0279de687 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -835,7 +835,7 @@ sub send_message
$gitversion = Git::version();
}
- my $cc = join(", ", unique_email_list(@cc));
+ my $cc = join(",\n\t", unique_email_list(@cc));
my $ccline = "";
if ($cc ne '') {
$ccline = "\nCc: $cc";
@@ -976,7 +976,9 @@ X-Mailer: git-send-email $gitversion
if ($smtp_server !~ m#^/#) {
print "Server: $smtp_server\n";
print "MAIL FROM:<$raw_from>\n";
- print "RCPT TO:".join(',',(map { "<$_>" } @recipients))."\n";
+ foreach my $entry (@recipients) {
+ print "RCPT TO:<$entry>\n";
+ }
} else {
print "Sendmail: $smtp_server ".join(' ',@sendmail_parameters)."\n";
}