X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=lib%2FPublicInbox%2FFilter%2FVger.pm;h=2c73738d82cc89a6ed1a19ae8537f0b265d868eb;hb=46742d95647c7a80cb2f60d5c134717dd91e22e2;hp=d31b903924eea2213f92c21c2844964e16d5f271;hpb=9bd675d33ad1e49bd2ebe12a1d216216e61380de;p=public-inbox.git
diff --git a/lib/PublicInbox/Filter/Vger.pm b/lib/PublicInbox/Filter/Vger.pm
index d31b9039..2c73738d 100644
--- a/lib/PublicInbox/Filter/Vger.pm
+++ b/lib/PublicInbox/Filter/Vger.pm
@@ -1,11 +1,11 @@
-# Copyright (C) 2016-2019 all contributors
+# Copyright (C) 2016-2020 all contributors
# License: AGPL-3.0+
# 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);
}