about summary refs log tree commit homepage
path: root/lib/PublicInbox/Import.pm
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-07-17 06:31:50 +0000
committerEric Wong <e@yhbt.net>2020-07-17 20:56:50 +0000
commitc6d0a81e6ca7a5da9f9ff193f0992705aa9f9682 (patch)
tree94f47e863a0f4d726247fca2196514cf1bc385b6 /lib/PublicInbox/Import.pm
parent26b19adf05338a0842d914a10699842620ab8f90 (diff)
downloadpublic-inbox-c6d0a81e6ca7a5da9f9ff193f0992705aa9f9682.tar.gz
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
Diffstat (limited to 'lib/PublicInbox/Import.pm')
-rw-r--r--lib/PublicInbox/Import.pm2
1 files changed, 1 insertions, 1 deletions
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;
 }