]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/WatchMaildir.pm
replace most uses of PublicInbox::MIME with Eml
[public-inbox.git] / lib / PublicInbox / WatchMaildir.pm
index 71bd84fc0d13c62941ca6a66a65aae03ab3029c8..7ca35403517ecd82e9e1a08f72c21c1d0234b08c 100644 (file)
@@ -6,7 +6,7 @@
 package PublicInbox::WatchMaildir;
 use strict;
 use warnings;
-use PublicInbox::MIME;
+use PublicInbox::Eml;
 use PublicInbox::InboxWritable;
 use File::Temp 0.19 (); # 0.19 for ->newdir
 use PublicInbox::Filter::Base qw(REJECT);
@@ -282,7 +282,7 @@ sub _spamcheck_cb {
                my ($mime) = @_;
                my $tmp = '';
                if ($sc->spamcheck($mime, \$tmp)) {
-                       return PublicInbox::MIME->new(\$tmp);
+                       return PublicInbox::Eml->new(\$tmp);
                }
                warn $mime->header('Message-ID')." failed spam check\n";
                undef;