about summary refs log tree commit homepage
path: root/lib/PublicInbox/MID.pm
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-04-29 10:43:34 +0000
committerEric Wong <e@yhbt.net>2020-04-30 07:33:52 +0000
commit129c630a7ec3e100bba272631c3880b9beac9cef (patch)
treeb8f885e223690bca5906c64c4cc185c90da6e2e4 /lib/PublicInbox/MID.pm
parentf7cc4dd0cd4eba5bc79d102f2c1cb2cbef3016b8 (diff)
downloadpublic-inbox-129c630a7ec3e100bba272631c3880b9beac9cef.tar.gz
Prefer the "ID" capitalization since it seems to to be the
preferred capitalization in RFC 5322.

In theory, this allows the interpreter to deduplicate the string
internally (I haven't checked if it does).

Unfortunately, there's too many instances of "Message-Id" in the
tests to be worth changing at this point.
Diffstat (limited to 'lib/PublicInbox/MID.pm')
-rw-r--r--lib/PublicInbox/MID.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/MID.pm b/lib/PublicInbox/MID.pm
index dddde092..685306db 100644
--- a/lib/PublicInbox/MID.pm
+++ b/lib/PublicInbox/MID.pm
@@ -72,7 +72,7 @@ sub extract_mids {
 
 sub mids ($) {
         my ($hdr) = @_;
-        my @mids = $hdr->header_raw('Message-Id');
+        my @mids = $hdr->header_raw('Message-ID');
         uniq_mids(extract_mids(@mids));
 }
 
@@ -81,7 +81,7 @@ sub mids ($) {
 # import and index without relying on HTTP endpoints
 sub mids_for_index ($) {
         my ($hdr) = @_;
-        my @mids = $hdr->header_raw('Message-Id');
+        my @mids = $hdr->header_raw('Message-ID');
         my @alts = $hdr->header_raw('X-Alt-Message-ID');
         uniq_mids(extract_mids(@mids, @alts));
 }