e-mail workflow: Message-ID is spelled with ID in both capital letters

We used to write "Message-Id:" and "Message-ID:" pretty much
interchangeably, and the header name is defined to be case
insensitive by the RFCs, but the canonical form "Message-ID:" is
used throughout the RFC documents, so let's imitate it ourselves.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
Reviewed-by: Elijah Newren <newren@gmail.com>
This commit is contained in:
Junio C Hamano
2022-12-16 10:47:19 +09:00
parent 57e2c6ebbe
commit ba4324c4e1
15 changed files with 75 additions and 75 deletions

View File

@ -1530,7 +1530,7 @@ sub send_message {
To: $to${ccline}
Subject: $subject
Date: $date
Message-Id: $message_id
Message-ID: $message_id
";
if ($use_xmailer) {
$header .= "X-Mailer: git-send-email $gitversion\n";
@ -1825,7 +1825,7 @@ sub process_file {
$has_mime_version = 1;
push @xh, $_;
}
elsif (/^Message-Id: (.*)/i) {
elsif (/^Message-ID: (.*)/i) {
$message_id = $1;
}
elsif (/^Content-Transfer-Encoding: (.*)/i) {