Size of Newsgrouppostings with nntplib

Stephan Hohe sth.news at uni.de
Wed Apr 10 13:13:53 EDT 2002


Gerhard =?unknown-8bit?Q?H=E4ring?= (gerhard at bigfoot.de) schrieb...
> * Stephan Hohe <sth.news at uni.de> [2002-04-06 23:04 +0200]:
> > 
> > I wrote a python skript to generate some newsgroup-statistics. I use
> > the NNTP object in module nntplib to connect to the newsserver and
> > recieve interesting message-headers useing the xhdr method. Now I'm
> > searching for a way to recieve the size of the postings. The only
> > thing I found is the xover method, witch submitts many informations,
> > including the article size in bytes.  Is there a way to recieve the
> > article size without loading all the additional informations submitted
> > by xover?
> 
> I don't know of any way. You could fetch the "Lines" header with the
> XHDR command, but AFAIK you can only access the article size in bytes
> with the help of XOVER.

I found a way: Using XHDR and requesting the header "Bytes" works (at 
least at my newsserver).

Stephan

-- 
Alle, die pauschalisieren, sind blöd!



More information about the Python-list mailing list