]> Sergey Matveev's repositories - public-inbox.git/commit
nntp: filter out duplicate Message-IDs for leafnode
authorEric Wong <e@80x24.org>
Fri, 14 Jun 2019 00:27:31 +0000 (00:27 +0000)
committerEric Wong <e@80x24.org>
Fri, 14 Jun 2019 00:27:31 +0000 (00:27 +0000)
commit541103582a3f60a3c6df0383382cacd782ea1edd
treed336f561fe43ccc831a8a57718f0a8a4efdfb62f
parent4b8b3036ba08515eb66fb014b6ded9dc57e079b2
nntp: filter out duplicate Message-IDs for leafnode

It's the unfortunate reality that there are some clients which
reuse Message-IDs (in which we generate + use another) or set
multiple Message-IDs on their own.  While the v2 format
addresses that, NNTP clients such as leafnode are not always
prepared to deal with that case.

So, ensure NNTP clients only see a single Message-ID, and
show the others as 'X-Alt-Message-ID'.
lib/PublicInbox/NNTP.pm
t/nntpd.t