]> Sergey Matveev's repositories - public-inbox.git/commit
v2writable: inject new Message-IDs on true duplicates
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>
Fri, 2 Mar 2018 19:32:19 +0000 (19:32 +0000)
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>
Fri, 2 Mar 2018 19:32:19 +0000 (19:32 +0000)
commitf80ef6a32b28f54415f79513537f6c9fcd58a244
tree46cf4dbae95135680b129b532a4217b96777368d
parent9e9863aa5fb74358cd2b5960e4d8d16f1ee9fece
v2writable: inject new Message-IDs on true duplicates

Since we'll need to support multiple Message-IDs anyways,
inject a new one if we hit a duplicate (or don't get one at
all).

Try to use a deterministic Message-Id for consistency, but give
up determinism and use a random Message-Id if an "attacker"
wants to prevent their message from being archived.
MANIFEST
lib/PublicInbox/V2Writable.pm
t/v2writable.t [new file with mode: 0644]