]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Search.pm
www: $MESSAGE_ID/raw endpoint supports "duplicates"
[public-inbox.git] / lib / PublicInbox / Search.pm
index f08b98702492561f55df14c9f0fdd12a6b7ed1ca..24600ee7574e62feff60d40f46fd792e69d32747 100644 (file)
@@ -417,6 +417,7 @@ sub each_smsg_by_mid {
        my $term = 'Q' . $mid;
        my $head = $db->postlist_begin($term);
        my $tail = $db->postlist_end($term);
+       return ($head, $tail, $db) if wantarray;
        for (; $head->nequal($tail); $head->inc) {
                my $doc_id = $head->get_docid;
                my $doc = $db->get_document($doc_id);