nntplib body question

Chuck Swiger cswiger at mac.com
Wed Jun 4 13:36:09 EDT 2003


Peter Melchart wrote:
[ ... ]
> that's the problem. i would like to do that on a huge basis.
> problem is: i would like to extract the filename of a binary posts. and i
> think there's no other way of doing that but reading the body and looking
> for a "begin 664 name" or "name=..." for yEnc encoded post.

If you were running your own news server, you could do this by setting up an 
X-Attachment: header, adding it to the overview.fmt, and regenerating the 
overview database for the entire news spool.  Which would be a significant 
effort once, but accessing this header later would be fast and relatively 
efficient afterwards (via xhdr or xover).

> but if i would read ALL binary posts that would be a little bit too much
> traffic to spend. :( but i don't feel fine cutting all connection on every
> file.

Indeed, no-- it would probably look like a DoS attack or abuse of resources.

-- 
-Chuck







More information about the Python-list mailing list