Article View: news.software.nntp
Article #52416Re: Replaces
From: Andrew
Date: Sun, 20 May 2001 00:48
Date: Sun, 20 May 2001 00:48
43 lines
3168 bytes
3168 bytes
In article <yly9rsq43o.fsf@windlord.stanford.edu>, Russ Allbery wrote:
> Uwe Ohse <uwe@ohse.de> writes:
>
>> This kind of thing can be implemented without too much trouble.
>> When a message with an ID abc\$v=(\d+)\@def comes then
>> 0. if the number is smaller than the largest known number for
>> the base msg-id ("abc@def") then throw the article away.
>> During this process you gather some information.
>> 1. store it as usual.
>> 2. put "abc$v=NNN@def" into the history (if you have something
>> like a separate history).
>> 3. put an entry "abc@def -> abc$v=NNN@def" (or a pointer to the
>> article if the articles is stored at a fixed place on the
>> medium) into a database, which may even be the history, overwriting
>> an old entry (see 0).
>> 4. remove all replaced message-ids from the history and the
>> message database (don't whine about performance here, you
>> would have to deal with separate cancel messages otherwise).
>> 1,2 and 4 (supersedes) will have to be done anyway. 0 and 3
>> are new but i don't think they are that costly.
>
> This is all a complete pain in the ass with any kind of traditional
> history implementation,
and an even bigger pain in the ass with a history implementation that
has been redesigned for maximum efficiency.
Putting structure into the message-id is probably the worst possible
thing you could ever do to it. Currently, there are huge advantages to
the fact that message-ids are opaque strings; you can use the MD5 hash
(or some other long high-quality hash, but MD5 is just about perfect
for the job) as a complete replacement for the original ID, giving you
a convenient short fixed-length quantity to deal with rather than a long
and very variable one.
Likewise, I get a lot of mileage from the fact that history entries
never need to be modified in a way that would extend their lifetime,
and never need to be deleted or overwritten.
--
Andrew, Supernews (a service of Critical Path, Inc.)
http://www.supernews.com - UK and US individual and corporate NNTP services
Technical Details
Message-ID:
<slrn9ge52m.frs.andrew+nonews@trinity.supernews.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!212.74.64.35!colt.net!newspeer.clara.net!news.clara.net!sn-uk-xit-01!sn-uk-post-01!supernews.com!corp.supernews.co.uk!andrew+nonewsReferences:
<UKbN6.7751$6j3.644413@www.newsranger.com> <WAhN6.48$9x.484@www.newsranger.com> <ylr8xmw2xi.fsf@windlord.stanford.edu> <20010519015029.778$rP@newsreader.com> <20010519205152.19303.1@serak.ohse.de> <yly9rsq43o.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <slrn9ge52m.frs.andrew+nonews@trinity.supernews.net> Subject: Re: Replaces Date: Sun, 20 May 2001 00:48:24 -0000 From: andrew+nonews@supernews.com (Andrew) References: <UKbN6.7751$6j3.644413@www.newsranger.com> <WAhN6.48$9x.484@www.newsranger.com> <ylr8xmw2xi.fsf@windlord.stanford.edu> <20010519015029.778$rP@newsreader.com> <20010519205152.19303.1@serak.ohse.de> <yly9rsq43o.fsf@windlord.stanford.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!212.74.64.35!colt.net!newspeer.clara.net!news.clara.net!sn-uk-xit-01!sn-uk-post-01!supernews.com!corp.supernews.co.uk!andrew+nonews Newsgroups: news.software.nntp Organization: Posted via Supernews, http://www.supernews.com Reply-To: andrew@supernews.com User-Agent: slrn/0.9.7.0 (FreeBSD) X-Complaints-To: newsabuse@supernews.com Lines: 42