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. --- lib/PublicInbox/InboxWritable.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/PublicInbox/InboxWritable.pm') diff --git a/lib/PublicInbox/InboxWritable.pm b/lib/PublicInbox/InboxWritable.pm index 31aa76c6..3558403b 100644 --- a/lib/PublicInbox/InboxWritable.pm +++ b/lib/PublicInbox/InboxWritable.pm @@ -117,7 +117,7 @@ sub mime_from_path ($) { local $/; my $str = <$fh>; $str or return; - return PublicInbox::MIME->new(\$str); + return PublicInbox::Eml->new(\$str); } elsif ($!{ENOENT}) { # common with Maildir return; @@ -162,7 +162,7 @@ sub mb_add ($$$$) { } elsif ($variant eq 'mboxo') { $$msg =~ s/^>From /From /gms; } - my $mime = PublicInbox::MIME->new($msg); + my $mime = PublicInbox::Eml->new($msg); if ($filter) { my $ret = $filter->scrub($mime) or return; return if $ret == REJECT(); -- cgit v1.2.3-24-ge0c7