From 46742d95647c7a80cb2f60d5c134717dd91e22e2 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 7 May 2020 21:05:50 +0000 Subject: replace most uses of PublicInbox::MIME with Eml PublicInbox::Eml has enough functionality to replace the Email::MIME-based PublicInbox::MIME. --- script/public-inbox-learn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'script/public-inbox-learn') diff --git a/script/public-inbox-learn b/script/public-inbox-learn index 4c10b68b..a33d813a 100644 --- a/script/public-inbox-learn +++ b/script/public-inbox-learn @@ -9,7 +9,7 @@ use strict; use warnings; use PublicInbox::Config; use PublicInbox::InboxWritable; -use PublicInbox::MIME; +use PublicInbox::Eml; use PublicInbox::Address; use PublicInbox::Spamcheck::Spamc; my $train = shift or die "usage: $usage\n"; @@ -20,7 +20,7 @@ if ($train !~ /\A(?:ham|spam|rm)\z/) { my $spamc = PublicInbox::Spamcheck::Spamc->new; my $pi_config = PublicInbox::Config->new; my $err; -my $mime = PublicInbox::MIME->new(do{ +my $mime = PublicInbox::Eml->new(do{ local $/; my $data = ; $data =~ s/\A[\r\n]*From [^\r\n]*\r?\n//s; -- cgit v1.2.3-24-ge0c7