]> Sergey Matveev's repositories - public-inbox.git/commitdiff
import: use common capitalization for filtering headers
authorEric Wong <e@yhbt.net>
Fri, 17 Jul 2020 06:31:50 +0000 (06:31 +0000)
committerEric Wong <e@yhbt.net>
Fri, 17 Jul 2020 20:56:50 +0000 (20:56 +0000)
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

index b61d4b31a49ac4255734c3997ec38e475b41fd5d..d565b0a03296d6d277328b543e76593d5e07df9d 100644 (file)
@@ -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;
 }