diff options
author | Eric Wong <e@80x24.org> | 2016-06-20 07:22:23 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-06-20 07:22:52 +0000 |
commit | 89c33eadfd78b2aacd3e4924cc62a7e3402c35e8 (patch) | |
tree | c1609e5f543a8ba7db5217615a8870bd9193f620 /lib/PublicInbox/Search.pm | |
parent | c70cc0c804f94127b7eb4448d796f4c1b3f6dd6f (diff) | |
download | public-inbox-89c33eadfd78b2aacd3e4924cc62a7e3402c35e8.tar.gz |
This should help avoid having too many fake top-level messages in the topic view since we only have a partial window for threading results.
Diffstat (limited to 'lib/PublicInbox/Search.pm')
-rw-r--r-- | lib/PublicInbox/Search.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/PublicInbox/Search.pm b/lib/PublicInbox/Search.pm index 856c8c14..8c0bab18 100644 --- a/lib/PublicInbox/Search.pm +++ b/lib/PublicInbox/Search.pm @@ -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) = @_; |