about summary refs log tree commit homepage
path: root/lib/PublicInbox/Filter/Vger.pm
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-05-07 21:05:50 +0000
committerEric Wong <e@yhbt.net>2020-05-09 08:59:10 +0000
commit46742d95647c7a80cb2f60d5c134717dd91e22e2 (patch)
tree43b6ef4aebba979e48eb9143cd491f1a5b3f7eea /lib/PublicInbox/Filter/Vger.pm
parent3b1b7abf814dbc7f2a737b2ca0e12b0fa518ff44 (diff)
downloadpublic-inbox-46742d95647c7a80cb2f60d5c134717dd91e22e2.tar.gz
PublicInbox::Eml has enough functionality to replace the
Email::MIME-based PublicInbox::MIME.
Diffstat (limited to 'lib/PublicInbox/Filter/Vger.pm')
-rw-r--r--lib/PublicInbox/Filter/Vger.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/Filter/Vger.pm b/lib/PublicInbox/Filter/Vger.pm
index e746238c..2c73738d 100644
--- a/lib/PublicInbox/Filter/Vger.pm
+++ b/lib/PublicInbox/Filter/Vger.pm
@@ -5,7 +5,7 @@
 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);
 }