🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #55680

Re: Article numbers

#55680
From: Curt Welch
Date: Wed, 19 Dec 2001 23:03
44 lines
2995 bytes
ronandersen@hotmail.com (Ronald A. Andersen) wrote:
> I am connecting to a newsserver, and I have a couple of questions
> regarding article numbers:
>
> 1) When I send the GROUP command, the article range does not start
> with one, why not? How can I get the first article number?

New articles are always added to the beginning so the high water
mark keeps going up as new articles come in.

The low water mark keeps going up as articles expire.  When the
server was first started the article numbers probably started at 1,
but they are long gone so you can't get them anymore.

> 2) Is there a max value for article numbers, and if it reaches a max,
> does it start over with one.

It's undefined.  Bad things will happen.

The highest volume groups get less than 50K articles a day, and with a
max article number of 2^31, that means it will take even thoes groups
over 100 years to hit the top.

The server will be reset before that happens.

But, if you are writting newsreader type code, you need to deal with
the case when one day you check the server and found the article numbers
have either jumped down (been reset), or jumps much higher.

> 3) What makes an article unique is the message-ID - not the article
> number?

The message-id is the unique name which is given to an article no matter
where it is in the world.  Every news server assigns article numbers based
on when the article shows up on that server, so the same article will be
assigned different numbers on every server.  And if it's cross posted to
multiple groups, it will be assigned a different number in each group which
it was posted to.  Servers add Xref: headers to document what article
number was assigned to the article for every group it was posted to.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Technical Details
Message-ID: <20011219180300.647$l8@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!feed2.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
References: <7425b840.0112181508.7d00400c@posting.google.com>

Show Full Headers
Complete Article Headers
Message-ID: <20011219180300.647$l8@newsreader.com>
Subject: Re: Article numbers
Date: Wed, 19 Dec 2001 23:03:01 +0000
From: curt@kcwc.com (Curt Welch)
References: <7425b840.0112181508.7d00400c@posting.google.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!feed2.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com x37mlmP8oB4PnZOJ6-TS4DZDJydR1UYGu04X+Cm.TXVeKNHKYI
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: 43