]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Filter/Vger.pm
update copyrights for 2021
[public-inbox.git] / lib / PublicInbox / Filter / Vger.pm
index d31b903924eea2213f92c21c2844964e16d5f271..0b1f5dd3fba50bd0164801b6fa17ce2c22872908 100644 (file)
@@ -1,11 +1,11 @@
-# Copyright (C) 2016-2019 all contributors <meta@public-inbox.org>
+# Copyright (C) 2016-2021 all contributors <meta@public-inbox.org>
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 
 # Filter for vger.kernel.org list trailer
 package PublicInbox::Filter::Vger;
 use base qw(PublicInbox::Filter::Base);
 use strict;
-use warnings;
+use PublicInbox::Eml;
 
 my $l0 = qr/-+/; # older messages only had one '-'
 my $l1 =
@@ -25,7 +25,7 @@ sub scrub {
        # so in multipart (e.g. GPG-signed) messages, the list trailer
        # becomes invisible to MIME-aware email clients.
        if ($s =~ s/$l0\n$l1\n$l2\n$l3\n($l4\n)?\z//os) {
-               $mime = PublicInbox::MIME->new(\$s);
+               $mime = PublicInbox::Eml->new(\$s);
        }
        $self->ACCEPT($mime);
 }