summaryrefslogtreecommitdiff
path: root/git-send-email.perl
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-03-21 22:03:30 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-03-21 22:03:30 (GMT)
commit71da2fb077c90d24f3d3b7597cea0393702ec467 (patch)
tree06612b848c076a55271a2b85b9adbf94bd8d672d /git-send-email.perl
parent7e02ec2c5d2e54df0300e5035fbb952e8dcf302c (diff)
parent9d3343961b845c02f9a3e0e9535492687c404b17 (diff)
downloadgit-71da2fb077c90d24f3d3b7597cea0393702ec467.zip
git-71da2fb077c90d24f3d3b7597cea0393702ec467.tar.gz
git-71da2fb077c90d24f3d3b7597cea0393702ec467.tar.bz2
Merge branch 'jh/send-email-one-cc' into maint
"Cc:" on the trailer part does not have to conform to RFC strictly, unlike in the e-mail header. "git send-email" has been updated to ignore anything after '>' when picking addresses, to allow non-address cruft like " # stable 4.4" after the address. * jh/send-email-one-cc: send-email: only allow one address per body tag
Diffstat (limited to 'git-send-email.perl')
-rwxr-xr-xgit-send-email.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-send-email.perl b/git-send-email.perl
index 068d60b..eea0a51 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -1563,7 +1563,7 @@ foreach my $t (@files) {
# Now parse the message body
while(<$fh>) {
$message .= $_;
- if (/^(Signed-off-by|Cc): (.*)$/i) {
+ if (/^(Signed-off-by|Cc): ([^>]*>?)/i) {
chomp;
my ($what, $c) = ($1, $2);
chomp $c;