diff options
author | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-03-23 01:54:16 +0000 |
---|---|---|
committer | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-03-23 01:58:40 +0000 |
commit | 41654a8cd9372c0640c4ca5339e5881927965e41 (patch) | |
tree | 60f475bc00157cb124de54bfe63622e34219cb05 /lib/PublicInbox/Search.pm | |
parent | f6285ab9d73a4eae490dda325096e61eadc415cd (diff) | |
download | public-inbox-41654a8cd9372c0640c4ca5339e5881927965e41.tar.gz |
Since v2 supports duplicate messages, we need to support looking up different messages with the same Message-Id. Fortunately, our "raw" endpoint has always been mboxrd, so users won't need to change their parsing tools.
Diffstat (limited to 'lib/PublicInbox/Search.pm')
-rw-r--r-- | lib/PublicInbox/Search.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/Search.pm b/lib/PublicInbox/Search.pm index f08b9870..24600ee7 100644 --- a/lib/PublicInbox/Search.pm +++ b/lib/PublicInbox/Search.pm @@ -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); |