]> Sergey Matveev's repositories - public-inbox.git/commit
searchidx: fix ghost root vivification
authorEric Wong <e@80x24.org>
Sun, 7 May 2017 10:49:00 +0000 (10:49 +0000)
committerEric Wong <e@80x24.org>
Sun, 7 May 2017 10:58:08 +0000 (10:58 +0000)
commitfeb4a75affbe5f940116dc4f6bcc5ddb52a110b4
tree34ab1b914e7f458cfb08db3fa9eead980960bd3f
parentde243560e2caa1d19bcbf518edfaf8b016161245
searchidx: fix ghost root vivification

Due to the asynchronous nature of SMTP, it is possible for the
root message of a thread (with no References/In-Reply-To)
to arrive last in a series.  We must preserve the thread_id
of the ghost message in this case, as we do when vivifiying
non-root ghosts.

Otherwise, this causes threads to be broken when the root
arrives last.
MANIFEST
lib/PublicInbox/Search.pm
lib/PublicInbox/SearchIdx.pm
t/search-thr-index.t [new file with mode: 0644]