]> Sergey Matveev's repositories - public-inbox.git/commitdiff
searchidxthread: load doc data for references
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>
Sat, 24 Feb 2018 06:58:55 +0000 (06:58 +0000)
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>
Wed, 28 Feb 2018 18:53:29 +0000 (18:53 +0000)
Otherwise, references and thread linking doesn't happen
across subject mismatches.  Oops, this is important.

lib/PublicInbox/SearchIdxThread.pm

index fd133d1d13eca307112561cb7a84e1e8f64c30b5..57bb293fc8d7ac8030c7c371860a58ba88a2802a 100644 (file)
@@ -101,6 +101,7 @@ sub thread_msg_real {
        $doc->add_term('XMID' . $mid);
        $doc->set_data($doc_data);
        $smsg->{ts} = $ts;
+       $smsg->load_from_data($doc_data);
        my @refs = ($smsg->references =~ /<([^>]+)>/g);
        $self->link_message($smsg, \@refs, $old_tid);
        my $db = $self->{xdb};