Article View: news.software.nntp
Article #26708Q: XHDR and XOVER
From: Simon R Knight
Date: Mon, 09 Mar 1998 00:00
Date: Mon, 09 Mar 1998 00:00
74 lines
4344 bytes
4344 bytes
I am trying to learn a little about NNTP, and have written a small program that enables me to talk to an NNTP port. During my experimentation, I have observed some behaviour among different news servers that has raised questions that I have been unable to answer by studiying the RFC's. Perhaps someone in this newsgroup may be able to help me with answers to these questions. 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 ? 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 ? 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 ? 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. 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. 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 ? 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 ? 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 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. What is the future looking like for NNTP server software ? What changes might I expect to encounter in during the next few years? Any suggestions or clarification would be most appreciated. Thanks ! Simon R Knight PS. I'm not sure if this is the best newsgroup to pose these questions; please let me know if there is a more appropriate one.
Technical Details
Message-ID:
<350360c6.17001868@news.tcp.co.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <350360c6.17001868@news.tcp.co.uk> Subject: Q: XHDR and XOVER Date: Mon, 09 Mar 1998 00:00:00 +0000 From: srk@bigfoot.com (Simon R Knight) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 332134707 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Distribution: inet Content-Type: text/plain; charset=us-ascii Organization: Total Connectivity Providers - Internet access for the UK Newsgroups: news.software.nntp