nntplib body question

Peter Melchart peter at melchart.com
Wed Jun 4 11:30:12 CEST 2003

> Well, you could drop the connection after you've read enough lines.
> If it's a several megabyte message and you want just a few lines, that
> may be a win.

that's exactly what i want to do. but when i call nntpconn.body(id) it
retrieves the whole body. how can i cut the connection after a certain
amount of bytes. a kind of network-callback would be nice that is called
after reading 1K or so, so i can skip the rest after 1 read 100 lines or
is there anything like that ?
the thing is, that i dont want to retrieve the whole article.

More information about the Python-list mailing list