Size of Newsgrouppostings with nntplib

Gerhard =?unknown-8bit?Q?H=E4ring?= gerhard at bigfoot.de
Sat Apr 6 17:35:47 EST 2002


* Stephan Hohe <sth.news at uni.de> [2002-04-06 23:04 +0200]:
> Hi,
> 
> 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.

Gerhard





More information about the Python-list mailing list