🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #50147

Article numbering on NNTP servers

#50147
From: Marcus Moennig
Date: Thu, 25 Jan 2001 22:15
65 lines
3692 bytes
Hi,

I read the following in RFC2980:

>>
4.3 Article Numbering

RFC 977 does not directly address the rules concerning articles
number.  However, the current practice is simple: article numbers are
monotonically increasing, articles may disappear, and therefore the
high and low water marks returned in a GROUP command should be
treated as maximum minima, and minimum maxima, respectively.
<<

I wonder what the real world consequences are here. Say, I start a 
newserver today plug in my live feed and the first article in a group 
I receive gets the article number one. Correct?

This goes on and on through the lifetime of the server, so is there a 
limit where the numbering starts with one again? I understand that is 
not the case, it will simply go on and on. Just to make sure, is it a 
real world problem that the highest article might get bigger than an 
unsigned 32-bit integer (0..4294967295)?

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? 
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. 
Or it tries to get the list of new headers by sending over XOver and 
uses a low value saved before, e.g. yesterday the newsreader got all 
headers for articles 1565 to 2500, the next day it will try to 
retrieve article headers for #2500 to the highest articleindex on the 
server for this group, but that is now way below #2500, so nothing 
will be retrieved and new headers are not recognised as new by the 
newsreader.

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? 

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?

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.   

Any ideas, suggestions, explanation of main stream solutions to these 
problems would be appreciated.

Thanks,
Marcus

    

Technical Details
Message-ID: <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!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!colt.net!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <36916.96891amb@40tude.com>
Subject: Article numbering on NNTP servers
Date: Thu, 25 Jan 2001 23:15:15 +0100
From: "Marcus Moennig" <minibbjd@gmx.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!supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!colt.net!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail
Newsgroups: news.software.nntp
Organization: T-Online
Lines: 64
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.t-online.com 980460931 02 11901 2RNR95TS7AFsm 010125 22:15:31
X-Complaints-To: abuse@t-online.com
X-Sender: 520046593153-0001@t-dialin.net
X-Newsreader: Free Spy