Re: Problem with nntplib.pl and innd under Solaris

Jack Shirazi - BIU (js@bison.lif.icnet.uk)
Thu, 29 Sep 94 11:00:31 BST


> however, my httpd server is running on the same machine as the innd and it the the
> process which is tring to connect to the news server.  It has the following news
> options:
> 
> {eagle:admin:41} telnet eagle.c3i.saic.com 119
> Trying 139.121.43.51 ...
> Connected to eagle.c3i.saic.com.
> Escape character is '^]'.
> 200 eagle.c3i.saic.com InterNetNews server INN 1.4 20-Mar-93 ready
> help
> 100 Legal commands
> 	authinfo
> 	help
> 	ihave
> 	list
> 	mode
> 	quit
> 	head
> 	stat
> 	xpath
> 	xreplic
> For more information, contact "usenet" at this machine.

Okay, it seems like your nntp server provides a restricted set of commands
for connection to it from the local machine. I presume that it expects
the connector to read the local disk, and not have things transferred through
the socket.

The solution for nntplib.pl is to change it to handle the case of being
on the local machine and having the restricted set of commands. The accesses
need to change to looking in the appropriate group under /usr/spool/news,
e.g. comp.lang.perl -> /usr/spool/news/comp/lang/perl. It shouldn't
be difficult to map the nntplib commands to this schema.

Note that the server still supports list, and to get from the message id
to the file which it represents, you use xpath, e.g.

xpath <369ihe$2a7@eagle.c3i.saic.com>
->
223 org/all/nnnnn

where nnnnn is the number which is the filename.

If you make the changes, I'd be interested in seeing them. My news server does
not do what yours seems to do. Connections from its local machine act in the
same way as connections from remote machines.