mfetch - fetch and decode (multi-part) articles from a NNTP server
mfetch newszilla.news.com:alt.binaries.sounds.mp3.camel 35351 35353 35355 35350 35356 NNTPHOST=newszilla.news.com; export NNTPHOST mfetch alt.binaries.sounds.mp3.camel 35351:35353:35355 35350:35356 mfetch --destdir my_mp3_dir alt.binaries.sounds.mp3.camel 35351:35353:35355 35350:35356
mfetch retrieves news articles from an NNTP server, and decodes them to extract the (possible binary) contents. It is particular useful for news postings that contain programs or binary data like sounds and images.
mfetch takes two arguments: the name of the news group, and a list of article numbers. The name of the news group may be prefixed with the name of an NNTP server, separated by a colon. If the NNTP server is left unspecified, mfetch uses standard environment variables to find the NNTP server name, see below.
The list of article numbers may be passed as distinct arguments, or combined in colon separated lists, or any combination thereof.
mfetch uses Convert::BulkDecoder to decode the contents, and hence supports UUdecoding, ydecoding and MIME attachments.
For yencoded contents, file consistency is verified using length and checksum tests.
The name of the directory where the resultant contents must be placed. Default is to put the contents in the current directory.
Just fetch the articles, and store them under the article numbers. No decoding is done.
Pause for secs seconds between article fetches to reduce the load of the network and server.
Don't do anything but checking the arguments.
Remarks for this action.
Only yencoded data can be CRC checked. CRC checking is slow, so only the partial checksums are verified.
For multi-part submissions, the article numbers must be passed in the right order.
Net::NNTP, Convert::BulkDecoder.
To find the news server, mfetch uses environment variables NNTPSERVER, NEWSHOST, or defaults to a host named news.
NNTPSERVER
NEWSHOST
news
Johan Vromans, Squirrel Consultancy <jvromans@squirrel.nl>
Convert::BulkDecoder, newsgrab.
Copyright 2003 Squirrel Consultancy.
License: Artistic.
To install Convert::BulkDecoder, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Convert::BulkDecoder
CPAN shell
perl -MCPAN -e shell install Convert::BulkDecoder
For more information on module installation, please visit the detailed CPAN module installation guide.