🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #188438

Re: leafnode only_groups_pcre

#188438
From: Whiskers
Date: Mon, 24 Jul 2006 13:44
58 lines
3663 bytes
On 2006-07-23, Alan Greenberger <ajgreenberger@fast.net> wrote:
> I have been trying to customize leafnode (1.11.2.rel-1, Debian Sarge)
> for multiple servers with only partial success.  I use three servers:
> our ISP's, mozilla's and gmane's.  I wish to tell it to use mozilla's
> and gmane's for specific groups and the ISP's for all others.  The
> abbreviated config is:
>
> #
> server = news.fast.net
> only_groups_pcre = ^(?!mozilla|gmane)
>
> server = news.mozilla.org
> only_groups_pcre = mozilla\.
> nodesc = 1
>
> server = news.gmane.org
> only_groups_pcre = gmane\.
> #
>
> I issue fetchnews -f and then look at the files in
> /var/spool/news/leaf.node.  Amazingly enough the "hard" PCRE works; the
> file news.fast.net contains no groups beginning with mozilla or gmane.
> However the two "easy" PCREs are ignored.  Those two files contain all
> subscribed groups supported by those servers.  I have tried commenting
> out the "nodesc = 1" with no effect.  I also tried some other PCREs
> such as ^gmane, gmane.*, with no effect.
>
> Does anyone know how to achieve the desired effect?

I think you'll find that the various files 
/var/spool/news/leaf.node/name.of.server contain all subscribed groups 
from /var/spool/news/interesting.groups/ at the time that server was last 
accessed - that is certainly what it looks like on my system.

To see what leafnode is actually doing when it contacts the upstream 
servers, use the -vv or -vvv options to fetchnews.  I see 'no such group' 
messages when leafnode asks for a group that a server doesn't carry; I 
have no 'only_groups_pcre' lines in my leafnode config.

As far as I know, the gmane.* "groups" are only carried by the gmane 
server, which carries nothing else, so there isn't really any need to try 
to specify which server to fetch them from.  Leafnode won't try to post 
articles to a server that doesn't carry that group.

There don't seem to be any mozilla.* groups on any of the three servers I 
fetch from, so I think that the mozilla server is probably the only one 
that carries those groups, and it probably carries no others, so again 
there isn't any need to tell leafnode not to fetch or post articles for 
those groups from anywhere else.

I don't know what effect the ! character will have in the expression 
"^(?!mozilla|gmane)"; according to man pcrepattern on my system, the ! 
character has no 'special meaning'.

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Technical Details
Message-ID: <hevep3-5c.ln1@ID-107770.user.individual.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!newsfeed.r-kom.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <slrnec7ec2.fe1.ajgreenberger@dumky.scores>

Show Full Headers
Complete Article Headers
Message-ID: <hevep3-5c.ln1@ID-107770.user.individual.net>
Subject: Re: leafnode only_groups_pcre
Date: Mon, 24 Jul 2006 14:44:17 +0100
From: Whiskers <catwheezel@operamail.com>
References: <slrnec7ec2.fe1.ajgreenberger@dumky.scores>
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!newsfeed.r-kom.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers
Organization: is an alien concept
Lines: 58
X-Trace: individual.net ZKziH+btCJLxAIB19d4LKAxaZgMrAw+6WuBZkrB1V94LCJCpwL
X-Orig-Path: ID-107770.user.individual.net!news
X-Face: (8UIp\C%,7b>N'Aa}l7v*-4z\fb2ab=[r*LKrwTU]>W\E]YS3Cb3mZo1Ty.t2%6_KsTV_"Pmt)1xC~QW%bU/xrlDuux";
 aJOH0|Ka^MEDf"9Ck?FcYcR)aI~e[\"NW,mpyK}Q6dU[\BmvwRD00xYer];
 5mR_!\-haGb/=!*bDWCm0~!G7ewqq7*|#g2#uEBhnKk60qLJ":i_#zfZ'cH`2a^!q_lzxh@p&
 g^8<z5>HA
User-Agent: slrn/0.9.8.1 (Linux)