🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #248585

Re:  Jeff Relf has set a bad example.

#248585
From: Demented Traveler
Date: Tue, 14 Feb 2012 05:28
38 lines
3668 bytes
On 14/02/2012 12:22 AM, Russ Allbery wrote:
> This is a special case of the general idea that one can deal with
> character set issues by normalizing before comparing.  Your proposed
> normalization function has the definite advantage of being fast (although
> no canonicalization is as fast as not having to do it), but has the
> disadvantage that it will smash multiple distinct message IDs to the same
> value.

Only ones that have a high bit set.

> Admittedly, it only does this with message IDs that are currently
> invalid, so it's not a bad idea, but the failure mode with existing
> servers that do octet comparisons is that a server using this algorithm
> will pick one of multiple articles with message IDs mapping to the same
> normalized form essentially at "random" and then reject all of the others.

If we had it all to do over again, we'd probably do well by designing 
the system to use the SHA-1 hash of the message body as the message-ID, 
encoded in some standard format, and follow up a hash collision with a 
byte-by-byte comparison of the full message to eliminate duplicates, 
using the message-ID just to speed up the duplicate test the majority of 
the time. Use of the hash as an actual message name would still mostly 
work (even accounting for the birthday paradox it would take many 
trillions of messages for a collision to become likely) and use of the 
hash + timestamp or hash + subject header would definitely work.

> Also, note that your proposed normalization function still doesn't deal
> with Unicode properly.  Semantically identical message IDs could still end
> up with different normalized forms.  The sequences e with an acute accent
> (U+00E9) and e followed by combining accent acute (U+0065 U+0301) will map
> to different normalized forms, but are semantically the same character
> and, per the Unicode standard, are generally supposed to be treated as
> equivalent.

However, the message would have been injected with only one or the other 
of those sequences. If a message had one form and another had the other 
form, producing different normalized IDs, then they were 
separately-injected messages and are *supposed* to have distinct IDs!
Technical Details
Message-ID: <jhcrdq$ube$1@speranza.aioe.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail
References: <slrnjikokv.3g8.steve@news.mixmin.net> <jhb1r2$fqd$1@news.trigofacile.com> <Jeff-Relf.Me@2012_Feb.13^11.35.am> <jhbr4j$ddu$1@news.trigofacile.com> <jhcb00$sks$1@pcls6.std.com> <Jeff-Relf.Me@2012_Feb.13^5.53.pm> <Z@Z> <87lio6m2q9.fsf@windlord.stanford.edu> <jhcqa9$s64$1@speranza.aioe.org> <87hayum1kq.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <jhcrdq$ube$1@speranza.aioe.org>
Subject: Re:  Jeff Relf has set a bad example.
Date: Tue, 14 Feb 2012 00:28:24 -0500
From: Demented Traveler <detravel@simic.net>
References: <slrnjikokv.3g8.steve@news.mixmin.net> <jhb1r2$fqd$1@news.trigofacile.com> <Jeff-Relf.Me@2012_Feb.13^11.35.am> <jhbr4j$ddu$1@news.trigofacile.com> <jhcb00$sks$1@pcls6.std.com> <Jeff-Relf.Me@2012_Feb.13^5.53.pm> <Z@Z> <87lio6m2q9.fsf@windlord.stanford.edu> <jhcqa9$s64$1@speranza.aioe.org> <87hayum1kq.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail
Newsgroups: news.software.nntp,alt.free.newsservers,news.software.readers
Organization: Simics
Lines: 38
NNTP-Posting-Host: pey7czwR0gmv4Sv993NaqA.user.speranza.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: tin/1.6.2-20030910 ("Pabbay") (UNIX)
 (CYGWIN_NT-6.0/1.5.22(0.156/4/2) (i686)) Hamster/2.0.2.2
X-Notice: Filtered by postfilter v. 0.8.2