🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
6 messages
6 total messages Started by vince Wed, 17 Jun 2009 19:46
leafnode and only_groups_pcre
#233799
Author: vince
Date: Wed, 17 Jun 2009 19:46
18 lines
1972 bytes
I use leafnode as my local news server and have several news server
configured.  Am trying to use the only_groups_pcre parameter to limit
which news groups come from which servers.

For the micorsoft server, I can use 
only_groups_pcre = microsoft\..*
and only the news groups beginning with microsoft will be used on that
server.

Since I'm getting the microsoft news groups from their server, I don't
want to get any of those same groups from any other servers, eg.
news.motzarella.org.  And I don't want to get any of the adobe
newsgroups from motzarella, either.  I can't figure out how to write a
regular expression that will include all news groups except microsoft.*
and adobe.*
How do I use only_groups_pcre parameter of leafnode to exclude both
microsoft and adobe newsgroups when pulling/posting to
news.motzarella.org?
Re: leafnode and only_groups_pcre
#233810
Author: Whiskers
Date: Wed, 17 Jun 2009 21:42
43 lines
2994 bytes
On 2009-06-17, vince <nobody@home.invalid> wrote:
> I use leafnode as my local news server and have several news server
> configured.  Am trying to use the only_groups_pcre parameter to limit
> which news groups come from which servers.
>
> For the micorsoft server, I can use 
> only_groups_pcre = microsoft\..*
> and only the news groups beginning with microsoft will be used on that
> server.
>
> Since I'm getting the microsoft news groups from their server, I don't
> want to get any of those same groups from any other servers, eg.
> news.motzarella.org.  And I don't want to get any of the adobe
> newsgroups from motzarella, either.  I can't figure out how to write a
> regular expression that will include all news groups except microsoft.*
> and adobe.*
> How do I use only_groups_pcre parameter of leafnode to exclude both
> microsoft and adobe newsgroups when pulling/posting to
> news.motzarella.org?

Interpreting the man file that came with the release of Leafnode 2 I'm 
using, I suggest you try 

    only_groups_pcre=!microsoft\.

If that works, try

    only_groups_pcre=!microsoft|!adobe

(I haven't tested those myself and my understanding of pcre is very 
limited).

If fetchnews collects all the articles in a group from the first server on 
its list, it won't collect them again from any others - but it will 
collect articles in that group that it hasn't already collected from an 
earlier server.  Likewise, I don't think it will post an outgoing article 
to more than one server (but I confess I haven't checked that recently).  
So I suspect you don't really need to use the restriction you propose.

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: leafnode and only_groups_pcre
#233823
Author: »Q«
Date: Thu, 18 Jun 2009 02:10
25 lines
2048 bytes
In <news:votng6-3rt.ln1@home.invalid>,
vince <nobody@home.invalid> wrote:

> Since I'm getting the microsoft news groups from their server, I don't
> want to get any of those same groups from any other servers, eg.
> news.motzarella.org.  And I don't want to get any of the adobe
> newsgroups from motzarella, either.  I can't figure out how to write a
> regular expression that will include all news groups except
> microsoft.* and adobe.*
> How do I use only_groups_pcre parameter of leafnode to exclude both
> microsoft and adobe newsgroups when pulling/posting to
> news.motzarella.org?

Something like

  only_groups_pcre = ^(alt|news|comp|rec)\.

You could add more hierarchies or use fewer, of course.

I don't think it matters in this case, but when posting about leafnode,
it's a good idea to mention the version you have.  For (IMO) idiotic
reasons, version 2 has no stable releases.  So a lot of distros stick
with version 1, whereas others have a much-improved version 2.

Re: leafnode and only_groups_pcre
#233838
Author: vince
Date: Thu, 18 Jun 2009 09:39
32 lines
2671 bytes
On Wed, 17 Jun 2009 21:10:53 -0500, »Q« <boxcars@gmx.net> wrote:

>In <news:votng6-3rt.ln1@home.invalid>,
>vince <nobody@home.invalid> wrote:
>
>> Since I'm getting the microsoft news groups from their server, I don't
>> want to get any of those same groups from any other servers, eg.
>> news.motzarella.org.  And I don't want to get any of the adobe
>> newsgroups from motzarella, either.  I can't figure out how to write a
>> regular expression that will include all news groups except
>> microsoft.* and adobe.*
>> How do I use only_groups_pcre parameter of leafnode to exclude both
>> microsoft and adobe newsgroups when pulling/posting to
>> news.motzarella.org?
>
>Something like
>
>  only_groups_pcre = ^(alt|news|comp|rec)\.

I'd like to exclude groups, although having a long list of groups to
include would also work, but is more work.

>You could add more hierarchies or use fewer, of course.
>
>I don't think it matters in this case, but when posting about leafnode,
>it's a good idea to mention the version you have.  For (IMO) idiotic
>reasons, version 2 has no stable releases.  So a lot of distros stick
>with version 1, whereas others have a much-improved version 2.

Still using leafnode 1, since leafnode 2 is not in my distro's
repository.  If I mange to annihilate my current install, I'll purge it
and install leafnode 2.
Re: leafnode and only_groups_pcre
#233839
Author: vince
Date: Thu, 18 Jun 2009 09:39
49 lines
3373 bytes
On Wed, 17 Jun 2009 22:42:44 +0100, Whiskers <catwheezel@operamail.com>
wrote:

>On 2009-06-17, vince <nobody@home.invalid> wrote:
>> I use leafnode as my local news server and have several news server
>> configured.  Am trying to use the only_groups_pcre parameter to limit
>> which news groups come from which servers.
>>
>> For the micorsoft server, I can use 
>> only_groups_pcre = microsoft\..*
>> and only the news groups beginning with microsoft will be used on that
>> server.
>>
>> Since I'm getting the microsoft news groups from their server, I don't
>> want to get any of those same groups from any other servers, eg.
>> news.motzarella.org.  And I don't want to get any of the adobe
>> newsgroups from motzarella, either.  I can't figure out how to write a
>> regular expression that will include all news groups except microsoft.*
>> and adobe.*
>> How do I use only_groups_pcre parameter of leafnode to exclude both
>> microsoft and adobe newsgroups when pulling/posting to
>> news.motzarella.org?
>
>Interpreting the man file that came with the release of Leafnode 2 I'm 
>using, I suggest you try 
>
>    only_groups_pcre=!microsoft\.
>
>If that works, try
>
>    only_groups_pcre=!microsoft|!adobe
>
>(I haven't tested those myself and my understanding of pcre is very 
>limited).

Thanks for the clue.  I didn't know "!" was "not".  Have been trying
only_groups_pcre=!microsoft\..* and have been getting strange results.
I don't think I've totally blown up leafnode yet, but am prolly well on
my way to complete destruction.

>If fetchnews collects all the articles in a group from the first server on 
>its list, it won't collect them again from any others - but it will 
>collect articles in that group that it hasn't already collected from an 
>earlier server.  Likewise, I don't think it will post an outgoing article 
>to more than one server (but I confess I haven't checked that recently).  
>So I suspect you don't really need to use the restriction you propose.

That makes sense.  Just need to pay a bit more attention to the order of
the server in the config file.
Re: leafnode and only_groups_pcre
#233862
Author: »Q«
Date: Fri, 19 Jun 2009 03:11
33 lines
2142 bytes
In <news:ijepg6-36c.ln1@home.invalid>,
vince <nobody@home.invalid> wrote:

> On Wed, 17 Jun 2009 22:42:44 +0100, Whiskers
> <catwheezel@operamail.com> wrote:
> 
> >On 2009-06-17, vince <nobody@home.invalid> wrote:

> >> How do I use only_groups_pcre parameter of leafnode to exclude both
> >> microsoft and adobe newsgroups when pulling/posting to
> >> news.motzarella.org?
> >
> >Interpreting the man file that came with the release of Leafnode 2
> >I'm using, I suggest you try 
> >
> >    only_groups_pcre=!microsoft\.
> >
> >If that works, try
> >
> >    only_groups_pcre=!microsoft|!adobe
> >
> >(I haven't tested those myself and my understanding of pcre is very 
> >limited).
> 
> Thanks for the clue.  I didn't know "!" was "not". 

"!" isn't "not".  There's no simple logical "not" in PCRE, but there
are things called negative lookahead assertions which you could use if
you really want to things this way.  You can find them in 
`man pcrepattern`.


Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads