🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #54781

Article numbering and handling article number rollover

#54781
From: Howard Siegel
Date: Wed, 24 Oct 2001 02:54
40 lines
2924 bytes
I need to write a specialized NNTP client program (NOT a full
fledged news reader!) and as I have not tried to read through
any of the "brand name" news readers as yet (but I have very
little time to devote to this project), I'd like the sage
advise of the experts on the matter....

1) What is the largest article number that I can expect to get
   back from the NNTP server?  Is a signed 32 integer sufficient
   to hold article numbers?

2) What is the proper way to detect rollover of the article
   numbers?  I suppose that if the highest article number
   the server says it has is smaller than the highest article
   number the newsrc says was read, then the article numbers
   have rolled over.  Is that the canonical way or is there
   a better way?

3) What is the proper response for resetting the article list
   in the newsrc file when rollover is detected?  Do I throw
   out the old article list and set the new article list to
   1 through the (<lowest-nntp-server-article-number> - 1)?

- howard

PS: I have already done some investigation, and under the
current circumstances and constraints, have decided that the
specialized NNTP client is the most expediant course of action
for this project. I have already had the "discussions" with folks
who have said "just put up a small Linux box running as a news
server, etc., etc., etc.". We don't have the resources or desire
to support running our own news server at this time just for this
one little function we would like to implement, and already have
access to a news server that more than adequately serves it's
purpose for general news consumption. So PLEASE, do not answer
if your are only going to suggest "put up your own news server".
I really just need the answers to the questions above to continue
the work I have already begun.

Technical Details
Message-ID: <9r5agg$7ma$1@news.panix.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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!news.gtei.net!news-peer.gip.net!news.gsl.net!gip.net!panix!news.panix.com!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <9r5agg$7ma$1@news.panix.com>
Subject: Article numbering and handling article number rollover
Date: Wed, 24 Oct 2001 02:54:09 +0000
From: Howard Siegel <not.interested@nospam.invalid>
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!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!news.gtei.net!news-peer.gip.net!news.gsl.net!gip.net!panix!news.panix.com!not-for-mail
Newsgroups: news.software.nntp,news.software.readers
Organization: Gallifrey Beach Club
Lines: 39
Distribution: inet
Reply-To: not.interested@nospam.invalid
NNTP-Posting-Host: panix2.panix.com
X-Trace: news.panix.com 1003892049 7882 166.84.1.2 (24 Oct 2001 02:54:09 GMT)
X-Complaints-To: abuse@panix.com
NNTP-Posting-Date: 24 Oct 2001 02:54:09 GMT
X-Newsreader: trn 4.0-test74 (May 26, 2000)