]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/SearchMsg.pm
view: permalink (per-message) view shows multiple messages
[public-inbox.git] / lib / PublicInbox / SearchMsg.pm
index dd3d58d078a5a717ada9960835185f9925743afd..b944868f070ad41ce2333463007024684960f90f 100644 (file)
@@ -24,6 +24,13 @@ sub wrap {
        bless { doc => $doc, mime => undef, mid => $mid }, $class;
 }
 
+sub get {
+       my ($class, $head, $db, $mid) = @_;
+       my $doc_id = $head->get_docid;
+       my $doc = $db->get_document($doc_id);
+       load_expand(wrap($class, $doc, $mid))
+}
+
 sub get_val ($$) {
        my ($doc, $col) = @_;
        Search::Xapian::sortable_unserialise($doc->get_value($col));