From: Junio C Hamano Date: Mon, 21 Jan 2013 01:22:49 +0000 (-0800) Subject: Merge branch 'nz/send-email-headers-are-case-insensitive' into maint X-Git-Tag: v1.8.1.2~12 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/cea1e2e94c0574d5eb475c43d8c39cc950dc1b28 Merge branch 'nz/send-email-headers-are-case-insensitive' into maint When users spell "cc:" in lowercase in the fake "header" in the trailer part, "git 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 --- cea1e2e94c0574d5eb475c43d8c39cc950dc1b28 diff --cc git-send-email.perl index 94c7f76a15,7198d2ec9a..be809e5b59 --- 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'});