🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #39049

NNTP protocol question

#39049
From: Douglas Cook
Date: Tue, 10 Aug 1999 00:00
35 lines
1994 bytes
(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: <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

Show Full Headers
Complete Article Headers
Message-ID: <7oqj34$j662@bbs2.pnl.gov>
Subject: NNTP protocol question
Date: Tue, 10 Aug 1999 00:00:00 +0000
From: "Douglas Cook" <cookd@cs.byu.edu>
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: 511276052
Organization: Pacific Northwest National Lab
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3612.1700
Newsgroups: news.software.nntp,news.software.readers