🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #59829

Re: News::NNTPClient module

#59829
From: Andrew - Supernews
Date: Mon, 05 Aug 2002 01:12
42 lines
2405 bytes
In article <3D4DB7EF.4030204@yahoo.com>, Mike Mimic wrote:
> Hi!
> 
> I am programing a Perl program as NNTP client. And I have
> a question about that. In News::NNTPClient module there is
> function "group". I think that this is only a Perl
> interface to the NNTP command. So I think that this question
> can be answered here.
> 
> So, this function returns first and last article numbers.
> But do all messages between those numbers exist?

not necessarily. If messages have been cancelled or expired, then there
may be gaps. On some systems there may also be gaps for articles that
never existed.
 
> If so, how can a client knows without looking for message for
> every article number?

normally the client will download a range of overview entries. For example
if articles up to 500 have been previously read, and the group command
returns a high-mark of 600, then the client will fetch overview entries
for 501-600.

> I found out that there is "listgroup"
> function, which return list of those. Should I call this

avoid LISTGROUP. It has the serious disadvantage that it can't be limited
to a specific range of the available articles, which means that if you do
it on a busy group or on a server with long retention, you may get a _lot_
of data returned.

> And another question. How clients determine which articles
> belong to the same thread? By subject?

no, by the References header (which is why References is in the data
returned by the XOVER command).

-- 
Andrew, Supernews
http://www.supernews.com - individual and corporate NNTP services
Technical Details
Message-ID: <slrnakrk82.1b6s.andrew+nonews@trinity.supernews.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!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
References: <3D4DB7EF.4030204@yahoo.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrnakrk82.1b6s.andrew+nonews@trinity.supernews.net>
Subject: Re: News::NNTPClient module
Date: Mon, 05 Aug 2002 01:12:34 -0000
From: Andrew - Supernews <andrew+nonews@supernews.com>
References: <3D4DB7EF.4030204@yahoo.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!sn-xit-02!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
Newsgroups: news.software.nntp
Organization: http://www.supernews.com - all your nntp are belong to us
Reply-To: andrew@supernews.com
User-Agent: slrn/0.9.7.4 (FreeBSD)
X-Complaints-To: newsabuse@supernews.com
Lines: 41