From: Junio C Hamano Date: Mon, 14 Jan 2013 16:15:36 +0000 (-0800) Subject: Merge branch 'nz/send-email-headers-are-case-insensitive' X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=94383a813570c254101ffd729dd8251db5fe8044;p=git.git Merge branch 'nz/send-email-headers-are-case-insensitive' When user spells "cc:" in lowercase in the fake "header" in the trailer part, send-email failed to pick up the addresses from there. As e-mail headers field names are case insensitive, this script should follow suit and treat "cc:" and "Cc:" the same way. * nz/send-email-headers-are-case-insensitive: git-send-email: treat field names as case-insensitively --- 94383a813570c254101ffd729dd8251db5fe8044 diff --cc git-send-email.perl index 94c7f76a1,7198d2ec9..be809e5b5 --- a/git-send-email.perl +++ b/git-send-email.perl @@@ -1300,10 -1242,10 +1300,10 @@@ foreach my $t (@files) foreach my $addr (parse_address_line($1)) { printf("(mbox) Adding to: %s from line '%s'\n", $addr, $_) unless $quiet; - push @to, sanitize_address($addr); + push @to, $addr; } } - elsif (/^Cc:\s+(.*)$/) { + elsif (/^Cc:\s+(.*)$/i) { foreach my $addr (parse_address_line($1)) { if (unquote_rfc2047($addr) eq $sender) { next if ($suppress_cc{'self'});