Article View: news.software.readers
Article #107398Re: Multiple Servers with SLRN
From: Kevin Harris
Date: Mon, 05 Aug 2002 17:38
Date: Mon, 05 Aug 2002 17:38
77 lines
3961 bytes
3961 bytes
*** post for FREE via your newsreader at post.newsfeed.com ***
On 1 Aug 2002 13:56:06 GMT, Jens Wahnes <jewa@gmx.net> wrote:
> Rick wrote:
>
>> Is it possible to have multiple servers with SLRN?
>
> Yes, the easiest way is IMHO to use -h on the command line to specify
> different servers. In .slrnrc, use "server <servername> <newsrcfile>"
> to map different servers to different .newsrcs.
>
>> And or different grooups of newsgroups?
>
> Well, each server usually has different groups than another, if that's
> what you're talking about.
I recently did this using;
%%% ~/.slrn/startup.sl %%%
define startup_hook ()
{
open_log_file("/home/kharris/slrn.out");
switch( server_name() )
{ server_name() == "nntp.perl.org" :
set_string_variable("scorefile", "News/Score-perl");
}
{ server_name() == "news.freshmeat.net" :
set_string_variable("scorefile", "News/Score-freshmeat");
}
{ server_name() == "dp-news.maxwell.syr.edu" :
set_string_variable("scorefile", "News/Score-maxwell");
}
{ set_string_variable("scorefile", "News/Score-SLRN"); }
}
define article_mode_hook ()
{
% wrap_article();
reload_scorefile(1);
}
%%% End of startup.sl %%%
The "reload_scorefile(1)" is - for me at least - necessary because - as you
can see - I have per-server scorefiles.
I've got these entries in my ~/.slrnrc
% Tell slrn which newsrc file it should use for which server.
% Note: This does *not* set the default server; you need to set the
% NNTPSERVER environment variable for this.
server "news.freshmeat.net" ".jnewsrc-freshmeat"
server "allnews.readfreenews.net" ".jnewsrc-allnews"
server "news.readfreenews.net" ".jnewsrc-news"
server "dp-news.maxwell.syr.edu" ".jnewsrc-maxwell"
server "nntp.perl.org" ".jnewsrc-perl"
and - at the very bottom of my .slrnrc...
interpret ".slrn/startup.sl"
With this, I can just issue
kharris@alamo:~ % slrn --nntp -h nntp.perl.org
and away I go.
Hope that's of some help.
kevin
-----= Posted via Newsfeed.Com, Uncensored Usenet News =-----
http://www.newsfeed.com - The #1 Newsgroup Service in the World!
-----== 100,000 Groups! - 19 Servers! - Unlimited Download! =-----
Technical Details
Message-ID:
<slrnaktdvr.bf4.kharrisSPAMMEANDDIE@alamo.satlug.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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!out.nntp.be!propagator-SanJose!news-in-sanjose!post.newsfeed.com!not-for-mailReferences:
<slrnakickv.rjs.Rick@localhost.localdomain> <slrnakiffm.1sg.nsr@message-id.wahnes-world.de>Show Full Headers
Complete Article Headers
Message-ID: <slrnaktdvr.bf4.kharrisSPAMMEANDDIE@alamo.satlug.org> Subject: Re: Multiple Servers with SLRN Date: Mon, 05 Aug 2002 12:38:05 -0500 From: Kevin Harris <kharrisSPAMMEANDDIE@alamo.DONTMESSWITHTTEXAS.satlug.org> References: <slrnakickv.rjs.Rick@localhost.localdomain> <slrnakiffm.1sg.nsr@message-id.wahnes-world.de> 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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!out.nntp.be!propagator-SanJose!news-in-sanjose!post.newsfeed.com!not-for-mail Newsgroups: news.software.readers User-Agent: slrn/0.9.7.4 (Linux) NNTP-Posting-Host: 207.235.6.99 X-Original-NNTP-Posting-Host: 207.235.6.99 X-Trace: post.newsfeed.com 1028568653 207.235.6.99 (5 Aug 2002 12:30:53 -0500) Organization: Newsfeeds.com http://www.newsfeed.com 100,000+ UNCENSORED Newsgroups. The #1 Usenet Service on the Planet! Lines: 76 X-Comments: This message was posted through Newsfeed.com's, FREE publicly accessible Usenet Server - "post.newsfeeds.com" X-Comments2: IMPORTANT: Newsfeed.com does not condone, nor support, spam or any illegal or copyrighted postings. X-Comments3: IMPORTANT: Under NO circumstances will postings containing illegal or copyrighted material through this service be tolerated!! X-Report: Please report illegal or inappropriate use to <abuse@newsfeeds.com> X-Abuse-Info: Please be sure to forward a copy of ALL headers, INCLUDING the body (DO NOT SEND ATTACHMENTS)