git-send-email: treat field names as case-insensitively
authorNickolai Zeldovich <nickolai@csail.mit.edu>
Mon, 7 Jan 2013 01:34:58 +0000 (20:34 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Jan 2013 07:48:12 +0000 (23:48 -0800)
commit6310071abfdf7a925b41a131d518d7636daa7259
treee99efee286fcd2f0de05e6e3e9519169cd87e97a
parent7e2010537e96d0a1144520222f20ba1dc3d61441
git-send-email: treat field names as case-insensitively

Field names like To:, Cc:, etc. are case-insensitive; use a
case-insensitive regexp to match them as such.

Previously, git-send-email would fail to pick-up the addresses when
in-body "fake" headers with different cases (e.g. lowercase "cc:")
are manually inserted to the messages it was asked to send, even
though the text will still show them.

Signed-off-by: Nickolai Zeldovich <nickolai@csail.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-send-email.perl