diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-10-18 23:01:37 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-10-18 23:01:37 -0700 |
commit | ee50af1566e78354c1a2d0feea2115b99a535d9d (patch) | |
tree | 942cda2070defae0ea2f846ff8f349d271493e4f /git-send-email.perl | |
parent | Merge branch 'cc/replace-no-replace' (diff) | |
parent | git-send-email.perl: fold multiple entry "Cc:" and multiple single line "RCPT... (diff) | |
download | tgif-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-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"; } |