Article View: news.software.nntp
Article #50158Re: Article numbering on NNTP servers
From: J.B. Moreno
Date: Fri, 26 Jan 2001 04:37
Date: Fri, 26 Jan 2001 04:37
65 lines
3775 bytes
3775 bytes
In article <36916.96891amb@40tude.com>, Marcus Moennig <minibbjd@gmx.net> wrote: > What might be a real-world problem is a server crash. An offline > newsreader logged into the server yesterday and saved a list of > headers to disk. Over night the server crashed, all articles are lost > and admins start sucking in articles again. Will they restart > numbering with one? Yep. And that's the right thing to do. > The newsreader logs in a day after and requests an article by article > number that it saved the day before. Of course an article with that > number is no longer there. Right, but what should happen is the newsreader logs in, issues a group command, gets a response saying that the high water mark is now less than the next number expected (saved in the .newsrc file or equivalent) and resets the group to having read nothing, preferably giving a warning that it had to do so. I don't see what the problem is, this is rare but not truly exceptional, the newsreader should handle it with the minimum of fuss which is the best it can do. If your newsreader doesn't handle this gracefully, write the author and complain (I notice you're using Free Spy, I've never heard of this, is this something you are writing, or have I simply missed it or are you just messing with the headers?). > How should a newsreader deal with these situations? > > When retrieving article bodies for known headers by article number, > should it check the returned message has the correct MessageId? It shouldn't bother, checking the group command is sufficient. > And when selecting a group should it check everytime that the highest > article number returned after the GROUP ... command is not smaller > than it was the last time? Absolutely. > Even this wouldn't solve the problem completely, e.g. if a low volume > group has article 1 to 10 which is copied to local disk by the > newsreader, then the server has a disk crash, after a month it has 10 > new (different) articles 1 to 12 and the newsreader connects again > doesn't even notice that there was a problem. It would get articles > 11 to 12, but ignore the other 10 _new_ articles. That's too rate to bother special casing, a good general purpose solution is to allow the user to reset the read high point. A common way of doing that is allowing the user to select the group and hold down a modifying key (say shift, option, control, caps lock, something) and then when opening the group, the program then asks for how many articles to get and then attempts to get the articles starting at "high-usersnum". Not only does this take care of allowing the user to get the old articles (if he notices that he needs to), it's handy for when he accidentally marks the group read and wants to go back to the old articles. -- J.B. Moreno
Technical Details
Message-ID:
<250120012337304579%planb@newsreaders.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!supernews.google.com!sn-xit-02!sn-xit-04!supernews.com!europa.netcrusader.net!205.252.116.205!howland.erols.net!portc.blue.aol.com.MISMATCH!portc03.blue.aol.com!feed.newsreader.com!news2.newsreader.com!news3.newsreader.com!planbReferences:
<36916.96891amb@40tude.com>Show Full Headers
Complete Article Headers
Message-ID: <250120012337304579%planb@newsreaders.com> Subject: Re: Article numbering on NNTP servers Date: Thu, 25 Jan 2001 23:37:30 -0500 From: "J.B. Moreno" <planb@newsreaders.com> References: <36916.96891amb@40tude.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!supernews.google.com!sn-xit-02!sn-xit-04!supernews.com!europa.netcrusader.net!205.252.116.205!howland.erols.net!portc.blue.aol.com.MISMATCH!portc03.blue.aol.com!feed.newsreader.com!news2.newsreader.com!news3.newsreader.com!planb Newsgroups: news.software.nntp Organization: bofh wannabe MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 8bit User-Agent: Thoth/1.0.6 (Carbon/OS X) Lines: 64