Article View: news.software.readers
Article #187133Re: slrnpull and multiple news servers
From: Troy Piggins
Date: Sun, 02 Jul 2006 07:41
Date: Sun, 02 Jul 2006 07:41
51 lines
2860 bytes
2860 bytes
* Troy Piggins wrote:
> * Anonymous wrote:
>>
>> how can I get slrnpull to feed from multiple nntp servers?
>
> Call it up twice with different NNTP servers in the "-h" host parameter?
>
> slrnpull -h nntpserver1
> slrnpull -h nntpserver2
>
>> particularly when grabbing different sets of groups from each.
>> I want to grab three different sets of groups from three different
>> servers and have that presented as a single collection of groups
>> in slrn. Ideally with new posts and follups going automaticaly
>> to the correct server based on the group it's posted in.
>
> Hmm, not sure about that. I think it'll try to use your default
> $NNTPSERVER for that.
>
> Unless you write a macro that changes your nntp posting host variable
> depending on what group you're in?
>
> define make_group_specific_settings ()
> {
> if (is_substr (current_newsgroup (), "alt.group1"))
> set_string_variable ("server", "nntphost1");
> else
> set_string_variable ("server", "nntphost2");
> }
> () = register_hook ("article_mode_hook", "make_group_specific_settings");
>
> Actually, that won't work I don't think. "server" is not assigned with
> "set" command so not sure. You get the general idea though. Maybe
> someone else can complete it.
define make_group_specific_settings ()
{
if (is_substr (current_newsgroup (), "alt.group1"))
() = system ("NNTPSERVER=nntphost1 && export NNTPSERVER");
else
() = system ("NNTPSERVER=nntphost2 && export NNTPSERVER");
}
() = register_hook ("article_mode_hook", "make_group_specific_settings");
Untested.
--
Troy Piggins : "My karma just ran over my dogma"
,-o
o ) Ubuntu linux 6.06 http://ubuntu.com RLU#415538 http://counter.li.org
`-o uptime: 17:38:24 up 3 days,19:04,2 users,load average:0.00,0.00,0.00
Technical Details
Message-ID:
<20060702173824@usenet.piggo.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.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nntp.waia.asn.au!203.59.27.186.MISMATCH!newsfeed.iinet.net.au!newsfeed.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsreader-01.iinet.net.au!not-for-mailReferences:
<W8IN71NY38900.0945833333@anonymous> <20060702171631@usenet.piggo.com>Show Full Headers
Complete Article Headers
Message-ID: <20060702173824@usenet.piggo.com> Subject: Re: slrnpull and multiple news servers Date: Sun, 02 Jul 2006 17:41:31 +1000 From: Troy Piggins <usenet-0607@piggo.com> References: <W8IN71NY38900.0945833333@anonymous> <20060702171631@usenet.piggo.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.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nntp.waia.asn.au!203.59.27.186.MISMATCH!newsfeed.iinet.net.au!newsfeed.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsreader-01.iinet.net.au!not-for-mail Newsgroups: news.software.readers Reply-To: usenet-0607@piggo.com User-Agent: slrn/0.9.8.1/rt (Linux) Lines: 51 NNTP-Posting-Host: 203.206.109.220 X-Trace: 1151826159 per-qv1-newsreader-01.iinet.net.au 2018 203.206.109.220