Article View: news.software.readers
Article #205953Re: [slrn] Using slrn to read from multiple servers
From: Blinky the Shark
Date: Sun, 16 Sep 2007 02:16
Date: Sun, 16 Sep 2007 02:16
58 lines
3777 bytes
3777 bytes
Pseudo Silk Kimono wrote: > On 2007-09-14, Blinky the Shark <no.spam@box.invalid> wrote: >> Troy Piggins wrote: >>> * Pseudo Silk Kimono is quoted & my replies are inline below : >>>> >>>> Greetings, >>>> >>>> Not only do I read news from motzarella, I also frequent the grc news >>>> server. Is there a way to configure slrn so that I can use multiple >>>> .slrn files, one for each server? Or better yet, add something to >>>> the .slrnrc file like a switch or flag that will tell slrn which >>>> server to connect to. >>> >>> You could do as Blinky suggests and run different instances of slrn >>> for different servers, or you could use slrnpull, a part of slrn, to >>> download messages from all mail servers and slrn reads from slrnpull >>> as a local spool. >> >> And, Pseudo, there's another option, I believe from PJR, that uses IF >> logic within .slnrrc to determine what server-specific settings are to >> be used, based on fiddling around with the otherwise irrelevant >> NNTPSERVER environment variable. > > I got it working. It's kind of brute force. > I create a script called runslrn and make it executable. Brute force from the kimono guy? I suspect samurai slang scripting! :) > server=$1 > if [[ $server = "grc" ]] > then > export NNTPSERVER=news.grc.com > slrn -i ~/.slrnrc-grc > else > export NNTPSERVER=news.motzarella.org > slrn -i ~/.slrnrc > fi > > .slrnrc-grc is basically a copy of .slrnrc except that I changed the > details for motzarella to grc. > Then I simply run ./runslrn grc or ./runslrn motza and I have both Gotcha. I just thought of something. You might want to incorporate my method of making those server-specific files contain *only* the handful of server-specific lines, and using includes to pull in the generic stuff from a common large file of all the other stuff. That would give you the simplicity of your few (expandable for more servers) lines of code *and* my advantage of being able to make general configuration tweaks in only one place -- that single copy of the general rc file. -- Blinky RLU 297263 Killing all posts from Google Groups The Usenet Improvement Project: http://improve-usenet.org <----------- New Site Aug 28
Technical Details
Message-ID:
<slrnfep4hr.k3b.no.spam@thurston.blinkynet.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news1.uni-leipzig.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<fcdp1i$amc$1@registered.motzarella.org> <20070914232220@usenet.piggo.com> <slrnfelmpv.4u6.no.spam@thurston.blinkynet.net> <fci2sg$f2f$1@registered.motzarella.org>Show Full Headers
Complete Article Headers
Message-ID: <slrnfep4hr.k3b.no.spam@thurston.blinkynet.net> Subject: Re: [slrn] Using slrn to read from multiple servers Date: Sun, 16 Sep 2007 02:16:53 +0000 From: Blinky the Shark <no.spam@box.invalid> References: <fcdp1i$amc$1@registered.motzarella.org> <20070914232220@usenet.piggo.com> <slrnfelmpv.4u6.no.spam@thurston.blinkynet.net> <fci2sg$f2f$1@registered.motzarella.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news1.uni-leipzig.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.readers Organization: http://blinkynet.net Lines: 58 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: individual.net jGt975ghI0/KPlM0KCeSNwvCzZ8Roa6oFDN0LvYmzgDXgcNu3T Cancel-Lock: sha1:nRsISsr+6Ut3Gq/siJWHyiWAwvQ= X-The-Usenet-Improvement-Project: http://improve-usenet.org X-Face: Jb-wQ7r&vrN}~8MC5B09S4&.ieh!Q:Di/XN.xrd#CU%; )bPa`Hm^(,3o$n(s75[P+$F+Q^4~Owj`WzkBtZU/#gL2BvEBm/e=/1,R0}d@q@)E X-OS: Mandriva 2006 Linux; kernel 2.6.12 X-WebTV-Stationery: Standard; BGColor=black; TextColor=black User-Agent: slrn/0.9.8.1pl2.1 (Linux)