From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 0255E1F5B7 for ; Fri, 17 Jul 2020 06:31:56 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 3/8] import: use common capitalization for filtering headers Date: Fri, 17 Jul 2020 06:31:50 +0000 Message-Id: <20200717063155.3734-4-e@yhbt.net> In-Reply-To: <20200717063155.3734-1-e@yhbt.net> References: <20200717063155.3734-1-e@yhbt.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 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; }