Article View: news.software.nntp
Article #24357Re: New approach for NoCeM-on-spool history updates?
From: Joe Greco
Date: Sun, 14 Dec 1997 00:00
Date: Sun, 14 Dec 1997 00:00
58 lines
2987 bytes
2987 bytes
In news.software.nntp article <87g1nwml64.fsf@erlenstar.demon.co.uk>, Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote: :This was a kind of wild idea I had.... : :ncmspool uses the INN control channel to update the history and do :cancels, which is known to have a few problems. c-nocem requires that :you pause the server. I think I've found an approach which, while it :requires an addition to innd, might well work better than either of :the above. : :The idea goes something like this. Define a new control message type :and add code to INN to handle it. It's processed only if it arrives :from localhost or the Unix-domain socket (various additional :safeguards are needed here, which I'm still thinking about). The body :of such a message is treated as a list of message-ids, each of which :is added to history (if not present) or looked up (*not* cancelled). :The article body is rewritten (yucky, but I couldn't think of a better :way) to include the article paths. (You would arrange for the article :to be propagated to a channel feed to actually do the deletions, to :avoid tying up the main loop.) : :I've implemented this (except for the security checks) and it seems to :work in principle. : :Questions: : : - is this an incredibly stupid idea? : - has someone done this already? : - is anyone interested? I guess I'm unclear on what the purpose of the complexity is. A NoCeM process needs to read the list of Message-ID's, try to add each one to history (perhaps along with <cancel.$*>), and if the addition fails due to collision, use the just-accessed data to remove the already existing file. Ideally, the only part that INN should have to do is the history addition/lookup part. Define a new INN control command, something akin to "addhist", which returns "Ok" or "/path/to/articles". Or, if you want to be more clever, extend the streaming NNTP protocol extensions to do this in an asynchronous manner. JUNKTHIS <luser.article.1@host.domain.com> 235 Ok or 435 /path/to/articles Using an actual article, however, is probably more pain than it is worth, and trying to set up channel feeds, etc., to deal with it is just a train wreck that is already happening. ... JG
Technical Details
Message-ID:
<671psa$ln1@newsops.execpc.com>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!not-for-mailReferences:
<87g1nwml64.fsf@erlenstar.demon.co.uk>Show Full Headers
Complete Article Headers
Message-ID: <671psa$ln1@newsops.execpc.com> Subject: Re: New approach for NoCeM-on-spool history updates? Date: Sun, 14 Dec 1997 00:00:00 +0000 From: jgreco@ns.sol.net (Joe Greco) References: <87g1nwml64.fsf@erlenstar.demon.co.uk> 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!not-for-mail X-Deja-AN: 298195810 Sender: jgreco@earth.execpc.com X-Complaints-To: abuse@execpc.com X-Trace: daily-planet.newsops.execpc.com 882141898 22241 (None) 169.207.16.1 Organization: sol.net Network Services - Milwaukee, WI Newsgroups: news.software.nntp