about summary refs log tree commit homepage
path: root/lib/PublicInbox/SearchIdxShard.pm
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-05-07 21:05:50 +0000
committerEric Wong <e@yhbt.net>2020-05-09 08:59:10 +0000
commit46742d95647c7a80cb2f60d5c134717dd91e22e2 (patch)
tree43b6ef4aebba979e48eb9143cd491f1a5b3f7eea /lib/PublicInbox/SearchIdxShard.pm
parent3b1b7abf814dbc7f2a737b2ca0e12b0fa518ff44 (diff)
downloadpublic-inbox-46742d95647c7a80cb2f60d5c134717dd91e22e2.tar.gz
PublicInbox::Eml has enough functionality to replace the
Email::MIME-based PublicInbox::MIME.
Diffstat (limited to 'lib/PublicInbox/SearchIdxShard.pm')
-rw-r--r--lib/PublicInbox/SearchIdxShard.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/SearchIdxShard.pm b/lib/PublicInbox/SearchIdxShard.pm
index 06bcd403..e754b038 100644
--- a/lib/PublicInbox/SearchIdxShard.pm
+++ b/lib/PublicInbox/SearchIdxShard.pm
@@ -8,6 +8,7 @@ use strict;
 use warnings;
 use base qw(PublicInbox::SearchIdx);
 use IO::Handle (); # autoflush
+use PublicInbox::Eml;
 
 sub new {
         my ($class, $v2writable, $shard) = @_;
@@ -75,7 +76,7 @@ sub shard_worker_loop ($$$$$) {
                         $self->begin_txn_lazy;
                         my $n = read($r, my $msg, $bytes) or die "read: $!\n";
                         $n == $bytes or die "short read: $n != $bytes\n";
-                        my $mime = PublicInbox::MIME->new(\$msg);
+                        my $mime = PublicInbox::Eml->new(\$msg);
                         my $smsg = bless {
                                 bytes => $bytes,
                                 num => $num + 0,