]> Sergey Matveev's repositories - public-inbox.git/commit
v2writable: exact discontiguous history handling
authorEric Wong <e@80x24.org>
Tue, 5 Jan 2021 01:29:10 +0000 (01:29 +0000)
committerEric Wong <e@80x24.org>
Sat, 9 Jan 2021 18:09:54 +0000 (18:09 +0000)
commit392533147f50061d93cb9ed82abf98067dde5472
treef214c7dd7cc8c6a8121e71b454d1ad3dd005270c
parent348e7a39627fd40d7cc0ca1be01412da51a71352
v2writable: exact discontiguous history handling

We've always temporarily unindexeded messages before reindexing
them again if there's discontiguous history.

This change improves the mechanism we use to prevent NNTP and
IMAP clients from seeing duplicate messages.

Previously, we relied on mapping Message-IDs to NNTP article
numbers to ensure clients would not see the same message twice.
This worked for most messages, but not for for messages with
reused or duplicate Message-IDs.

Instead of relying on Message-IDs as a key, we now rely on the
git blob object ID for exact content matching.  This allows
truly different messages to show up for NNTP|IMAP clients, while
still those clients from seeing the message again.
lib/PublicInbox/V2Writable.pm