🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #26701

Re: Q: XHDR and XOVER

#26701
From: Fluffy
Date: Mon, 09 Mar 1998 00:00
118 lines
6768 bytes
Simon R Knight <srk@bigfoot.com> wrote:
: The first suprise to me when talking to different news servers, was
: that the first and last article numbers returned by a GROUP command,
: sometimes encompass a range in the thousands, even though the
: estimated number of articles may only be a few hundred ?

Sure.  Lots of things can cause this, from active files that simply aren't
updated very often, to FAQs with very long expiration dates, to old articles
that get "stuck" and occasionally need to be manually removed by the admin.

: Before writing my program, I imagined that it would be possible to
: iterated through each of the article numbers in a group, to extract
: header information (eg. NNTP-Posting-Host or Path) that isn't provided
: by the XOVER command. In my first attemp, my program had to iterate
: through thousands of article numbers before reaching the upper end of
: the range, which contained the few hundred estimated articles; after
: iterating through approx 3 thousand article numbers the process came
: to a halt, before reaching the article numbers which were associated
: with actual articles. My first question would be; how common is this
: disparity ...  is it the norm, or have I just been talking to errant
: servers ?

Manually stepping through article numbers is not a very good way to do it. 
The NEXT command will give you better results.  Too, if you keep a history
on file of articles you've already read (like .newsrc in most newsreaders),
you can save a lot of work in many applications.

: My next experiments were with the NEXT command, where it became
: apparent that returned article numbers were not sequential, but
: jumping over certain intermediate ranges. I am now wondering if the
: article numbers returned with the NEXT command (or XHDR SomeHeader-)
: are actually identical to those articles in the NOV database ?

The missing articles may have expired (see the thing about FAQs above), or
been cancelled.  Too, some servers don't fill in every article number but
one here and there for various reasons.

: When I iterate through some of the article numbers that a NEXT command
: (or XHDR SomeHeader-) will jump over, I am often able to obtain path
: lines using the HEAD command.

That's reasonable to see.  The overview (NOV/XOVER) databases are filed
separately from the articles themselves, and it's not unusual to see
no-longer-living articles in there.

: As I am particularly interested in
: scanning path lines and NNTP-Posting-Hosts for analysis, these
: otherwise bypassed article numbers are significant, and yet it isn't
: practical to iterated throught thousands of non-existent article
: headers.

Right.  Also, have you looked into the STAT command?  It can be very useful
for some kinds of searches.

: One way that I thought might be a solution to the above, was
: to use the XHDR command with the first article number, followed by a
: hyphen, as the command argument, but this command also skips many
: article numbers that actually contain path-line information (if
: nothing else). My second question is;  is this XHDR command (with the
: first article number followed by a hyphen), using the NOV database
: also, or is it using some other database that may be unreliable for a
: news client to rely on ?

XHDR can grab lots of things that don't normally exist in overview, so the
usual behavior is to have it grab the information from the article itself. 
However, none of the commands can be guaranteed to use a given source for
hte information they supply, and it's probably not a great idea to design an
assumption like that into your code :/

: At the moment, I am wondering if I should perform and XOVER- command,
: and obtain an overview of all NOV articles, and then specifically
: request Path field bodies, and NNTP-Posting-Host field bodies, using
: each article's number or message id ?

The overview also usually gives you the Xref, which contains the article
numbers.  Fetching by article number is easier on many servers because you
don't have to hit the history file.

: If the XOVER- command is only
: returning the same article numbers as the above XHDR (and NEXT)
: command, then I could skip an overview where overview data is not
: essential, and simply use these other commands. Uppermost in my mind,
: is the reliability of and support for commands like XHDR and XPAT as
: opposed to XOVER ?

I would tend to trust XHDR a wee bit more than XOVER, but XOVER offers such
better performance that I'd be willing to make that concession for most
applications.

: I haven't yet implemented parsing/unfolding of NOV data, so I haven't
: been able to accurately compare this data with the data generated by
: the other commands.

It's usually fine, but being a separate database it *is* possible for it to
get out of synchronization with the real article database.  You will
probably want to check the newest article in the group, and make sure that
HEAD and XOVER match, before deciding whether XOVER is okay to use on the
current group.

: What is the future looking like for NNTP server software ?  What
: changes might I expect to encounter in during the next few years?

Most of the recent NNTP innovations have been going into the conversations
between servers, rather than into the reader interface.  Some marked changes
look to be in store for the layout of the articles themselves, and there is
a pretty good chance that security features will be introduced.  The methods
of storing and serving articles, beneath NNTP, have been seeing some radical
changes, but those shouldn't do much of anything to the reader interface
except to make it speedier.  The new "groupless" storage methods may
facilitate better searching capabilities (perhaps an XPAT that works across
all or a wildcarded set of groups?), which is the only *really* useful
enhancement that comes to mind at the moment.

-- 
"gems - harmless and highly amusing!"  -Gareth Gee, on Meowers

Technical Details
Message-ID: <slrn6g7gdu.356.fluffy@fluffy.meow.org>
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: <350360c6.17001868@news.tcp.co.uk>

Show Full Headers
Complete Article Headers
Message-ID: <slrn6g7gdu.356.fluffy@fluffy.meow.org>
Subject: Re: Q: XHDR and XOVER
Date: Mon, 09 Mar 1998 00:00:00 +0000
From: fluffy@meow.org (Fluffy)
References: <350360c6.17001868@news.tcp.co.uk>
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: 332200648
Sender: news@fluffy.meow.org (Fluffy Owns Me)
X-Attribution: meow
X-Meow: Meow
Mail-Copies-To: never
Organization: Usenet, a division of Meow Industries
Newsgroups: news.software.nntp
X-Meowserver-Date: 09 Mar 1998 10:17:34 GMT