about summary refs log tree commit homepage
path: root/lib/PublicInbox/InboxWritable.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/InboxWritable.pm')
-rw-r--r--lib/PublicInbox/InboxWritable.pm4
1 files changed, 2 insertions, 2 deletions
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();