🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #66611

Retrieving article sizes

#66611
From: R Lucas
Date: Fri, 05 Sep 2003 02:04
33 lines
1941 bytes
Hi,

I'm writing a script that connects to a NNTP server and collects data from 
article headers. I intend to use it for generating statistics.

One other piece of information I'd like to collect is an article's size. 
At the moment, I'm trying to do it like this:

Connect to NNTP server
Get a list of new message-IDs using NEWNEWS
For each new message:
    Get the headers using 'HEAD <message-ID>'
    Get a group and article number pair from the XRef header
    Go to the group with 'GROUP groupname'
    Get the article's size using 'XOVER articlenumber'

This doesn't work with the Diablo server I've been using for testing.  
This seems to be because the article numbers in the XRef header do not
match those in the overview database. I suspect this might be due to the 
reason given in section 6.5 of the Diablo FAQ at 
http://www.xs4all.nl/~scorpio/diablo/faq.html. 'HEAD articlenumber' and 
'HEAD <message-ID>' commands give XRef headers with different article 
numbers.

So, can anyone think of a way to retrieve an article's number from the
overview database instead of the XRef header? Or, indeed, any other method
of persuading the server to give me the article's size?

Sorry if I've missed something really obvious, but this has had me puzzled 
for a day and a half now.

Rayner
Technical Details
Message-ID: <HKpxrF.Dy.B.amos@bath.ac.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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!server3.netnews.ja.net!south.jnrs.ja.net!server2.netnews.ja.net!bath.ac.uk!csmrl

Show Full Headers
Complete Article Headers
Message-ID: <HKpxrF.Dy.B.amos@bath.ac.uk>
Subject: Retrieving article sizes
Date: Fri, 5 Sep 2003 02:04:27 GMT
From: csmrl@bath.ac.uk (R Lucas)
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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!server3.netnews.ja.net!south.jnrs.ja.net!server2.netnews.ja.net!bath.ac.uk!csmrl
Newsgroups: news.software.nntp
Organization: University of Bath, UK
Lines: 32