]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Search.pm
www: improve topic view by scanning for ghosts
[public-inbox.git] / lib / PublicInbox / Search.pm
index 856c8c144c8ea1afcb4d0cae2a736ffad4e955ef..8c0bab185d489008356e8efeafa641893549eac7 100644 (file)
@@ -227,6 +227,12 @@ sub lookup_message {
        $smsg;
 }
 
+sub lookup_mail { # no ghosts!
+       my ($self, $mid) = @_;
+       my $smsg = lookup_message($self, $mid);
+       PublicInbox::SearchMsg->load_doc($smsg->{doc});
+}
+
 sub find_unique_doc_id {
        my ($self, $term, $value) = @_;