nntplib question

Gerrit Holl gerrit at nl.linux.org
Sun Feb 23 21:11:58 CET 2003


L. B. schreef op zondag 23 februari om 20:57:11 +0000:
> Hi all,
> 
> i'm building a trivial cgi-newsreader... at this stage i'm just
> hacking around the nntplib module trying to understand how it works.
> 
> I didn't understand how to retrieve the message body because there is
> not a "body" header in usenet messages
> 
> Till now i've just produced the code you'll find at the link below...
> could you please help me understand how to extract the body having the
> article number and or message-id?

Use the .article() method when you have the article number.
Having the message-id is more complex, I don't know a clean way to do it.

yours,
Gerrit.

-- 
Asperger Syndroom - een persoonlijke benadering:
	http://people.nl.linux.org/~gerrit/
Het zijn tijden om je zelf met politiek te bemoeien:
	http://www.sp.nl/





More information about the Python-list mailing list