diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-12-16 04:47:19 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-04-03 18:55:43 +0300 |
commit | ba4324c4e1e32a28381ea1f4835b78e4c9d45575 (patch) | |
tree | 0661c607f484725a547b0fb1cdf81267f2886828 /mailinfo.c | |
parent | 57e2c6ebbe7108b35ba30184dcbcb6c34c929ad8 (diff) |
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>
Diffstat (limited to 'mailinfo.c')
-rw-r--r-- | mailinfo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mailinfo.c b/mailinfo.c index 833d28612f..580c2316a9 100644 --- a/mailinfo.c +++ b/mailinfo.c @@ -597,7 +597,7 @@ static int check_header(struct mailinfo *mi, ret = 1; goto check_header_out; } - if (parse_header(line, "Message-Id", mi, &sb)) { + if (parse_header(line, "Message-ID", mi, &sb)) { if (mi->add_message_id) mi->message_id = strbuf_detach(&sb, NULL); ret = 1; @@ -829,7 +829,7 @@ static int handle_commit_msg(struct mailinfo *mi, struct strbuf *line) if (patchbreak(line)) { if (mi->message_id) strbuf_addf(&mi->log_message, - "Message-Id: %s\n", mi->message_id); + "Message-ID: %s\n", mi->message_id); return 1; } |