Peer

Peer is a perl script and two modules that allow news articles to be fed from a remote server to another server. It requires only the perl module Net::NNTP, which is part of the libnet package available for your favourite CPAN mirror, and needs no special permission or access to innd's history file to run.

One module (NNTPPeer.pm) implements a subset of the commands given in the draft-barber-nntp-imp-07 which defines an extension of rfc 977. Specifically it implements the TAKETHIS and CHECK commands of streaming mode. This module may be of use in other applications.

The other module (PeerTransfer.pm) is the meat of the program; essentially only two routines are called in the actual script which respectively initiate and actually do the transfer of articles.

Features

At present this should be regarded as beta quality software; however I've been using it for a few months with no obvious problems. As ever your mileage may vary. Unless you're at least reasonably happy with perl this probably isn't for you because I haven't made it particularly user friendly - you will have to edit the base perl script to get it to work for you. I hope I've commented it enough that this won't be too unobvious.

I am interested in feature requests and bug reports for this - but don't hold your breath waiting for them to materialise; I do have other things to do....


History

24th October 1998
Initial release
15th November 1998
Some rewriting:
28th November 1998
Few more improvements
31st January 1999
Some fine tuning
Real Soon Nowtm
Support for username, password when logging onto the remote newsserver. It might even get more friendly in the future.

Download

Unless you place the two modules it needs in perl's default search path, you should always invoke it in the installation directory so it can find its modules, or modify @INC appropriately. Enjoy!

Peer Mailing List

This is for people who'd like to be contacted when a new version is released, or have questions. To subscribe send mail to majordomo@hopf.demon.co.uk with body subscribe peer.


Home