Article View: news.software.readers
Article #28362Problem with server directive in slrn.rc file
From: David Mears
Date: Fri, 13 Dec 1996 00:00
Date: Fri, 13 Dec 1996 00:00
56 lines
3407 bytes
3407 bytes
Within the last couple of weeks, I've changed jobs here at work, and as a consequence, I've also changed computer systems. In the course of getting slrn back up and running again on my new system, I've run into a problem in properly processing the server directive from the slrn.rc file. I first noticed the problem with 0.9.1.1, but it also exists in 0.9.2 as well. There are two news servers here on site where I work. In my old job I was using one of them, while the new system I'm on is set up to use the other. Rather than try to convert my .newsrc file to match the different article numbers on the other news server, I figured it was easier to just continue to use the old server I was using before. So I modified the server directive in my .slrnrc file. However, I found that the server directive was being ignored by slrn. Here are additional details. We keep the name of the default news server to use in a file called /usr/local/etc/nntpserver on each system here at work. So I built slrn with NNTPSERVERFILE defined in the Makefile to point to this file. However, it appears that if this is so defined, and if the name of the news server within the slrn.rc file does not match, then the server name is used from the NNTPSERVERFILE file, and the server directive within slrn.rc is ignored. (Note, I'm also using the server directive to tell slrn to use .newsrc rather than .jnewsrc.) I then tried to run slrn with the NNTPSERVER environment variable set to the news server I wanted. Although it then used the server I wanted, it continued to ignore the server directive from slrn.rc as it tried to use .jnewsrc rather than .newsrc as directed. I also built a version of slrn which did not define NNTPSERVERFILE to any value. Running that version of slrn complained that I needed to set the NNTPSERVER environment variable and it too ignored the server directive in slrn.rc. The only way I could get slrn to process the server directive in my .slrnrc file (specifying both the server I want as well as getting slrn to use .newsrc) was to build a version with NNTPSERVERFILE defined to point to my own local file containing the same server system name as I have in the server directive in my own .slrnrc file. I would expect slrn to use any information defined on the server directive within a user's local .slrnrc to override any server info defined within a system global file as indicated by NNTPSERVERFILE. However, this doesn't appear to be the case. Can this be fixed in the next version of slrn? Please? With things as they are now, one can't seem to build a version of slrn that all can use with individuals able to specify a different server and/or .newsrc file name within their own .slrnrc files. David B. Mears Hewlett-Packard Cupertino CA mears@cup.hp.com
Technical Details
Message-ID:
<slrn5b3jvm.sgu.mears@xsvr2.cup.hp.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <slrn5b3jvm.sgu.mears@xsvr2.cup.hp.com> Subject: Problem with server directive in slrn.rc file Date: Fri, 13 Dec 1996 00:00:00 +0000 From: mears@xsvr2.cup.hp.com (David Mears) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 204385742 Organization: Networked Computing Division: Hewlett Packard Newsgroups: news.software.readers