🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #40009

slrn: Multiple NewsServers again

#40009
From: Ken Keen
Date: Tue, 07 Apr 1998 00:00
93 lines
3397 bytes
[I'm sorry if some of you received this twice -- I cancelled the original as I
neglected to put in the "slrn:" prefix in the subject]

I have read the doc, FAQ, etc. and have searched Deja News and have monitored
this newsgroup for about two months.

Here is what I found at  
http://x4.dejanews.com/getdoc.xp?AN=135396074&CONTEXT=891980808.1925709

* * * * * * * * * * * * * * * * * * * * * * * * * * * * 
Subject:      slrn: customization hints
From:         davis@space.mit.edu (John E. Davis)
Date:         1996/01/16
Message-ID:   <slrn4fnj44.bkb.davis@wiwaxia.mit.edu>
Newsgroups:   news.software.readers,alt.lang.s-lang

[snip]

Finally note that slrn may be specified with the -D command line option.
This allows one to define additional preprocessing tokens and then use these
in conjunction with #ifdef preprcessing.  For example, consider the
following .slrnrc file:

#ifdef NERD
 server "my.news.server" ".newsrc-nerd"
 organization "Nerds Only"
 signature ".nerd-signature"
#else
 server "my.news.server" ".newsrc"
 organization "State College"
 signature ".signature"
#endif

If slrn is started as:

    slrn -DNERD

the first set of setting will be used.  If started without the -DNERD
command line parameter, the second set will be used.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * 

I setup two ksh function definitions (I use function defintions extensively):

* * * * * * * * * * * * * * * * * * * * * * * * * * * * 
altopia () {
 /usr/local/bin/slrn0.9.4.6 -DALTOPIA
 }
myhome () {
 /usr/local/bin/slrn0.9.4.6 -DMYHOME
 }
* * * * * * * * * * * * * * * * * * * * * * * * * * * * 

In my slrnrc:

* * * * * * * * * * * * * * * * * * * * * * * * * * * * 
#ifdef ALTOPIA

 nnrpaccess news.alt.net MyAltNetName MyAltNetPassword
 server "news.alt.net" ".jnewsrc"

 hostname "Dangerous.Kitchen"
 set username "TroubleEveryDay"
 set realname "Ken Keen"
 set replyto  "TroubleEveryDay@Dangerous.Kitchen"
 set organization "Society for the Preservation of Soft Little Things"
 set signature "Man from Utopia"

#else
 server "news.myhomeserver.com" ".newsrc"
 hostname "myhomeserver.com"
 set username "MyHomeUserName"
 set realname "MyHomeRealName"
 set replyto  "MyHomeAddress"
 set organization "MyHomeOrg"
 set signature "MyHomeSig"
#endif
* * * * * * * * * * * * * * * * * * * * * * * * * * * * 

MyHomeServer is my primary ISP with its own server.

When I run myhome, all works well (ie. the #else kicked in).

When I run altopia, it continues to use news.myhomeserver.com
vs.news.alt.net. I.e., the #else kiked in again. It appears that either the
-DALTOPIA isn't taking or the #ifdef ALTOPIA isn't being processed (probably
the former).

Any thoughts?



Technical Details
Message-ID: <slrn6il6jd.d30.TroubleEveryDay@user2.teleport.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-mail

Show Full Headers
Complete Article Headers
Message-ID: <slrn6il6jd.d30.TroubleEveryDay@user2.teleport.com>
Subject: slrn: Multiple NewsServers again
Date: Tue, 07 Apr 1998 00:00:00 +0000
From: TroubleEveryDay@Dangerous.Kitchen (Ken Keen)
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: 341830136
Reply-To: TroubleEveryDay@Dangerous.Kitchen
Organization: Society for the Preservation of Soft Little Things You Step On
Newsgroups: news.software.readers