summaryrefslogtreecommitdiff
path: root/git-send-email.perl
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-10-24 05:30:42 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-10-24 05:30:42 (GMT)
commit0adc030615fbec4ca20b5fe0b61ed118e82122dc (patch)
tree2c73611c1e163230aeea872720de75269778f44c /git-send-email.perl
parent64fb90b7076eda54d894484ce34a91632997cd2b (diff)
parent02461e0e2833753151ed71899f075c94e5fc495b (diff)
downloadgit-0adc030615fbec4ca20b5fe0b61ed118e82122dc.zip
git-0adc030615fbec4ca20b5fe0b61ed118e82122dc.tar.gz
git-0adc030615fbec4ca20b5fe0b61ed118e82122dc.tar.bz2
Merge branch 'jp/maint-send-email-fold' into maint
* 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 f5ba4e7..a0279de 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";
}