]> Sergey Matveev's repositories - public-inbox.git/blobdiff - scripts/import_slrnspool
inboxidle: avoid needless syscalls on refresh
[public-inbox.git] / scripts / import_slrnspool
index e569d0044ad993d4866b149c07907640ade8afeb..bdcc605c245434bc5ca6c47524d09ce6aef45147 100755 (executable)
@@ -11,7 +11,7 @@
 use strict;
 use warnings;
 use PublicInbox::Config;
-use PublicInbox::MIME;
+use PublicInbox::Eml;
 use PublicInbox::Import;
 use PublicInbox::Git;
 sub usage { "Usage:\n".join('',grep(/\t/, `head -n 10 $0`)) }
@@ -70,7 +70,7 @@ for (; $exit == 0 && $n < $max; $n++) {
        $max = $n + $max_gap;
        print STDERR $fn, "\n";
 
-       my $mime = PublicInbox::MIME->new(eval { local $/; <$fh> });
+       my $mime = PublicInbox::Eml->new(do { local $/; <$fh> });
        $filter->scrub($mime);
        $im->add($mime);