🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #39039

Re: NNTP protocol question

#39039
From: Dufus Systems
Date: Tue, 10 Aug 1999 00:00
66 lines
3164 bytes
Douglas,

I'd track the last time I contacted the server by tracking the message
number of the last article pulled (which you have to do on a per server
basis), then I'd user XOVER to extract all overview records from the last
record seen to the current time. The GROUP command response gives you the
min and max record number that the server has for a group. You'll then just
be pulling the new records. First time through you might have to do
something different and this assumes you're storing the headers between
runs. If you're not storing records and each time is like the first time,
I'd also user XOVER but, use the numbers returned by the group command to
specify the range to pull.

You could also use NEWNEWS to do it by tracking the last time you finished
pulling headers from the server for that groups and NEWNEWSing from that
time.

Conrad





Douglas Cook <cookd@cs.byu.edu> wrote in message
news:7oqj34$j662@bbs2.pnl.gov...
> (This may be the wrong newsgroup for this question.  Please let me know if
> you are aware of a newsgroup that fits my topic better.)
>
> I am developing a specialized NNTP client.  When it logs onto a news
server,
> it needs to know the message ID's of the articles in a particular group.
> The easiest way for me to do this is to execute a "NEWNEWS [group] 700101
> 000000", which returns a listing of the message ID's of all articles in
> group since 1970, or in other words, all of them.  However, I realize that
> this isn't a good way to do it, since it uses up a lot of the server's
> processing power (it has to retrieve each article and parse the article's
> date field to verify that it was posted after 1970).  Besides being
not-nice
> to the server, it means the client is slow as well, since there is a
> noticeable delay while the server processes the request, scanning all of
the
> articles for their posting dates.  Compatibility is a big issue.
>
> One way I've thought about is to
> "GROUP [group]"
> "STAT" (returns the first article's message-ID)
> Repeat "NEXT" until I get a 422.
>
> But this probably isn't all that "nice" to the server either, making it
> process n requests instead of 1.
>
> What is the preferred method of getting a list of the message-ID's within
a
> group?
>
> --
> =-=-=-=-=-=-=-=-=-=-=-=-=-=
> Douglas Cook - MCP
> mailto:cookd@cs.byu.edu
> =-=-=-=-=-=-=-=-=-=-=-=-=-=
>
>



Technical Details
Message-ID: <rr1rfe3rkrl72@news.supernews.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!not-for-mail
References: <7oqj34$j662@bbs2.pnl.gov>

Show Full Headers
Complete Article Headers
Message-ID: <rr1rfe3rkrl72@news.supernews.com>
Subject: Re: NNTP protocol question
Date: Tue, 10 Aug 1999 00:00:00 +0000
From: "Dufus Systems" <Dufus@peon.com>
References: <7oqj34$j662@bbs2.pnl.gov>
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!not-for-mail
X-Deja-AN: 511310592
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
X-Complaints-To: newsabuse@supernews.com
Organization: Posted via Supernews, http://www.supernews.com
X-MSMail-Priority: Normal
Newsgroups: news.software.nntp,news.software.readers