]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/LeiStore.pm
searchidxshard: replace index_raw with index_eml
[public-inbox.git] / lib / PublicInbox / LeiStore.pm
index d686e95a35699fb72b810cf95b3dd9aeb6711efd..4f77e8fad9d318fe0ce354c3536b5cdd176f8224 100644 (file)
@@ -199,6 +199,7 @@ sub add_eml {
        $im->add($eml, undef, $smsg) or return; # duplicate returns undef
        my $msgref = delete $smsg->{-raw_email};
        $smsg->{bytes} = $smsg->{raw_bytes} + crlf_adjust($$msgref);
+       undef $msgref;
 
        local $self->{current_info} = $smsg->{blob};
        if (my @docids = _docids_for($self, $eml)) {
@@ -215,7 +216,7 @@ sub add_eml {
                $oidx->add_overview($eml, $smsg);
                $oidx->add_xref3($smsg->{num}, -1, $smsg->{blob}, '.');
                my $idx = $eidx->idx_shard($smsg->{num});
-               $idx->index_raw($msgref, $eml, $smsg);
+               $idx->index_eml($eml, $smsg);
                $idx->ipc_do('add_keywords', $smsg->{num}, @kw) if @kw;
                $smsg;
        }