Article View: news.software.nntp
Article #14956Re: NEWNEWS Command
From: Terry Kennedy
Date: Tue, 11 Feb 1997 00:00
Date: Tue, 11 Feb 1997 00:00
49 lines
3159 bytes
3159 bytes
David A. Bartizal <dabart1@solution4u.com> writes:
> 1. What method do other readers use to get a list of new articles?
Readers maintain a list of the article sequence numbers they've already
seen. Most Unix newsreaders use the .newsrc file for this, which contains
one line for each group of interest, followed by a colon+space and one or
more article ranges.
> 2. Why is the NEWNEWS command being phased out. It seems like a good
> method to issue one simple command? There *must* be some better way,
> eh?
A long time ago, Usenet news was low volume - I remember when a one month
article retention would happily fit in 500MB. These days, news is several
GB per day. While a lot of that is people distributing pirated software and
dirty pictures, a lot of it is just an increased quantity of articles.
All of the common news transports NEWNEWS commands do a search through the
news "history file". This file has grown in step with the number of articles
and can now be quite large (on one of my servers it's > 150MB). While the
news server is searching this file for you, it isn't doing any work for other
users.
There are a number of ways to get equivalent info. Which is best probably
depends on which server your ISP is running.
You can do a "list active" or a "group group.name" to get the current low
and high article numbers in the groups (the first form gives you the info for
all the group, the second for a specific group).
You can then either save that info so you know what article to start with
next time, or you're storing message ID's you can do "xhdr Message-ID low-hi"
commands to get all of the message ID's. Assuming that the server is using
an overview database (a very common assumption these days) this is a low-
overhead command. Of course, if you know you've seen some of the articles,
you don't have to ask for all the ID's - just the ones for articles you haven't
already seen. You can also xhdr many other useful header fields (From, Subject,
etc.).
I'd also suggest that you look at some of the utilities that allow you to
pull a newsfeed from a non-cooperating server - suck, slurp, etc. Some of these
use NEWNEWS, while others are more intelligent.
Terry Kennedy Operations Manager, Academic Computing
terry@spcvxa.spc.edu St. Peter's College, Jersey City, NJ USA
+1 201 915 9381 (voice) +1 201 435-3662 (FAX)
Technical Details
Message-ID:
<E5GFKo.Goz@spcuna.spc.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-mailReferences:
<5doh1j$en4$1@jair.pressenter.com>Show Full Headers
Complete Article Headers
Message-ID: <E5GFKo.Goz@spcuna.spc.edu> Subject: Re: NEWNEWS Command Date: Tue, 11 Feb 1997 00:00:00 +0000 From: Terry Kennedy <terry@spcuna.spc.edu> References: <5doh1j$en4$1@jair.pressenter.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 X-Deja-AN: 218090308 X-nntp-posting-host: spcuna.spc.edu Sender: news@spcuna.spc.edu (USENET News) X-nntp-posting-user: terry Content-type: text/plain; charset=US-ASCII X-trace: 855691223/20943 Organization: St. Peter's College, US Mime-version: 1.0 Newsgroups: news.software.nntp