🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #54789

Re: Article numbering and handling article number rollover

#54789
From: Curt Welch
Date: Wed, 24 Oct 2001 13:44
31 lines
2740 bytes
Howard Siegel <not.interested@nospam.invalid> wrote:

> Anyone know what algorithm the "brand name" news readers use to detect
> 'wildly different' numbers and what they do to reset the newsrc article
> number list when this happens?

I don't know what each of the brand names do, but creating a workable
algorithm is not hard.  The newsreader needs to keep track of the last
article range it saw for each group, and within that range, which articles
the user has read.  When it connects to the server and gets a new article
range, it simply assumes all the articles in the new range which were
not already marked as "read" from the old range, should be considered
"new".

If you don't keep track of the lower bound of the range, then dealing
with article numbers that have been reset doesn't just work automatically,
so you need to add a test to see if the high water mark drops.  When it
does, you just assume all the articles are "new" again by throwing out
the current newsrc info.  You will probably want to put in some type
of test of how much it changed and only reset the list if it drops by
a lot (100 or so maybe).

The fine points of how you code it will depend on which of the possible
errors you are more willing to accept (i.e. seeing old articles again when
they were already marked as read or missing some new articles when the
group is reset).

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Technical Details
Message-ID: <20011024094359.296$nq@newsreader.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!newsfeed1.cidera.com!Cidera!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
References: <9r5agg$7ma$1@news.panix.com> <87lmi120ui.fsf@erlenstar.demon.co.uk> <9r5hmi$9pq$1@news.panix.com>

Show Full Headers
Complete Article Headers
Message-ID: <20011024094359.296$nq@newsreader.com>
Subject: Re: Article numbering and handling article number rollover
Date: Wed, 24 Oct 2001 13:44:00 +0000
From: curt@kcwc.com (Curt Welch)
References: <9r5agg$7ma$1@news.panix.com> <87lmi120ui.fsf@erlenstar.demon.co.uk> <9r5hmi$9pq$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!newsfeed1.cidera.com!Cidera!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp,news.software.readers
X-Trace: NewsReader.Com 8wzG6m_/KzeK8F_pcABu_Y2YFN=/yY3-6+kvLiFW9xSQh9xS
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
  %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 30