From c6d0a81e6ca7a5da9f9ff193f0992705aa9f9682 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 17 Jul 2020 06:31:50 +0000 Subject: [PATCH] import: use common capitalization for filtering headers In case this ends up in the same process as Mbox::msg_hdr, it can reduce memory use by sharing the cache key in PublicInbox::Eml::re_memo --- lib/PublicInbox/Import.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/Import.pm b/lib/PublicInbox/Import.pm index b61d4b31..d565b0a0 100644 --- a/lib/PublicInbox/Import.pm +++ b/lib/PublicInbox/Import.pm @@ -326,7 +326,7 @@ sub extract_cmt_info ($;$) { sub drop_unwanted_headers ($) { my ($mime) = @_; - $mime->header_set($_) for qw(bytes lines content-length status); + $mime->header_set($_) for qw(Bytes Lines Content-Length Status); $mime->header_set($_) for @PublicInbox::MDA::BAD_HEADERS; } -- 2.50.0