ActivePerl Documentation
|
NAMENNML::Server - a minimal NNTP server
SUPPORTED PLATFORMS
SYNOPSISperl -MNNML::Server -e server perl -MNNML::Server -e unspool
DESCRIPTIONNNML::Server server implements a minimal NNTP server. It is (hope-)
fully conformant to rfc977. In addition the commands Supported commands: ARTICLE, AUTHINFO, BODY, GROUP, HEAD, HELP, IHAVE, LAST, LIST, MODE, NEWGROUPS, NEWNEWS, NEXT, POST, QUIT, SLAVE, STAT XOVER, XHDR, LIST NEWSGROUPS ng-spec The main reason for writing this was to synchronize my mail directories across different hosts. The Mail directories are MH-Style with a F<.overview> file in each folder and an F<active> file in the base directory. These are maintained by the B<Emacs> B<Gnus> backend B<NNML>. To get started, you can generate/update this files using the B<overview> program. Upon C<POST> and C<IHAVE> commands this files will also be updated. To start from scratch use: touch /tmp/active; perl -MNNML::Server -e 'server(base => "/tmp", port => 3000)' To export your mh-Mail use:
perl overview -base ~/Mail
perl -MNNML::Server -e 'server(base => "$ENV{HOME}/Mail", port => 3000)'
The command POST and IHAVE honour the When the client submits the perl -MNNML::Server -e unspool Rejected articles will be saven in
AUTHORIZATIONTo enable access restrictions use:
perl -MNNML::Auth -e "NNML::Auth::add_user($ENV{LOGANME}, 'passwd', \
'read', 'write', 'admin')"
If base/passwd exists, three levels of authorization are recognized:
FEATURESVersion 1.06 implements the
BUGSThe server handles multiple connections in a single thread. So a hung
SEE ALSOThe overview(1) and nnmirror(1) manpages.
AUTHORUlrich Pfeifer <pfeifer@ls6.informatik.uni-dortmund.de>
|