diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-10-24 09:30:42 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-10-24 09:30:42 +0400 |
commit | 0adc030615fbec4ca20b5fe0b61ed118e82122dc (patch) | |
tree | 2c73611c1e163230aeea872720de75269778f44c /git-send-email.perl | |
parent | 64fb90b7076eda54d894484ce34a91632997cd2b (diff) | |
parent | 02461e0e2833753151ed71899f075c94e5fc495b (diff) |
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-x | git-send-email.perl | 6 |
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"; } |