Article View: news.software.readers
Article #188509Re: leafnode only_groups_pcre
From: Whiskers
Date: Wed, 26 Jul 2006 12:35
Date: Wed, 26 Jul 2006 12:35
137 lines
6847 bytes
6847 bytes
On 2006-07-25, Alan Greenberger <ajgreenberger@fast.net> wrote: > On 2006-07-24, Whiskers <catwheezel@operamail.com> wrote: >> On 2006-07-23, Alan Greenberger <ajgreenberger@fast.net> wrote: snip > I don't have a good understanding of how leafnode works and have been > groping for a solution. I have had problems with posting to some news > groups. I think that in some cases, my ISP's news server doesn't > 'really' post to a particular group but accepts it from leafnode. It > is possible that the only_groups_pcre lines I put in above actually are > working, because a previous post to a mozilla group didn't get out, but > a repeated post since the PCRE change did! Some news-servers are not very reliable; those operated by ISPs are particularly 'quirky' - losing articles is not at all uncommon. Another thing that some servers can get wrong, is to set up a group that should not exist on that server - eg the mozilla.* groups seem to be intended to be carried only by the mozilla server, which probably does not 'peer' with any other servers - there are several such special-interest servers. But if for some reason there is a mozilla.* group on news.fast.net then it's possible that your articles for the mozilla.* groups were being accepted by that server - but naturally not appearing in the real groups on the mozilla server. There are two things to do in those circumstances. Firstly, change the order of the servers in your config so that the mozilla server is checked first - and thus your articles for that server will be sent to it instead of to the wrong server. Secondly, contact the admin of news.fast.net and try to persuade them to remove the 'improper' mozilla.* groups which should not exist on their server. > Further, the "groups" files in the leaf.node directory get updated each > time fetchnews runs. Yes. One file for each up-stream server, one line in each file for each newsgroup subscribed to - regardless of whether or not that group is carried by that server. > I now notice that all of the "interesting" groups > are back in all three files. Each group is followed by a number. For > example: > news.fast.net:news.software.readers 22089 > news.gmane.org:news.software.readers 1 > news.mozilla.org:news.software.readers 1 > For the servers matching the PCREs above, a group gets a real article > number, and for the non-matching ones it gets a "1". > (I think that before I put in the PCREs, there were non "1" numbers for > the same group in more than one file.) I see the same thing with the numbers in my system, which has no only_groups_pcre lines for any of the servers. The numbers seem to be the 'article numbers' (local to each server) of the last article fetched (or killed) from that group from that server, plus 1 - with a 1 meaning that no articles for that group have been found on that server. For example, on my system (the first server is my ISP's, and I normally have it set as 'read only' so that my articles propagate from Individual.net instead):- .-----[ [mark@tavy leaf.node]$ cat news.enta.net ] | [...] | news.software.readers 22698 | alt.autos.citroen 2834 | soc.religion.quaker 7294 | uk.net.providers 2345 | alt.internet.providers.uk 18644 | alt.support.depression 283378 | 24hoursupport.helpdesk 1 | uk.politics.id-cards 3007 | uk.gov.social-security 172779 | opera.general 1 | [...] '----- .-----[ [mark@tavy leaf.node]$ cat news.individual.net ] | [...] | news.software.readers 220183 | alt.autos.citroen 6466 | soc.religion.quaker 114460 | uk.net.providers 2492 | alt.internet.providers.uk 98939 | alt.support.depression 2011859 | 24hoursupport.helpdesk 1170738 | uk.politics.id-cards 2983 | uk.gov.social-security 29589 | opera.general 104517 | [...] '----- .-----[ [mark@tavy leaf.node]$ cat news.datemas.de ] | [...] | news.software.readers 13906 | alt.autos.citroen 1516 | soc.religion.quaker 4681 | uk.net.providers 229 | alt.internet.providers.uk 1907 | alt.support.depression 138750 | 24hoursupport.helpdesk 87110 | uk.politics.id-cards 1295 | uk.gov.social-security 2695 | opera.general 1990 | [...] '----- Leafnode will look for all available articles in all groups from each server; it will fetch any articles that have not already been fetched, using the Message-ID to 'kill' any duplicates. This means that your 'local' spool for each group can include articles that have been found on only one of the upstream servers carrying that group - which is useful if any of those servers happens to have dropped articles, or deliberately filtered them out, or if at any time one of the servers is unavailable. > I got the '!' character out of the pcre man page. It says "Lookahead > assertions start with (?= for positive assertions and (?! for negative > assertions." So the expression is supposed to mean "beginning of line > neither followed by mozilla nor gmane". I had tried it first with > "pcregrep testfile" and it worked. Perhaps we have different 'builds'. > Explanation from anyone about how leafnode really works would be > appreciated. Look at /var/log/syslog for the fetchnews entries; there's a lot of detail there about what is actually happening (assuming that your Leafnode keeps a log). You may need to use tools such as cat grep and less to extract the lines you are interested in. <http://www.tldp.org/HOWTO/News-Leafsite.html> might be of some use; likewise <http://www.leafnode.org/>. -- -- ^^^^^^^^^^ -- Whiskers -- ~~~~~~~~~~
Technical Details
Message-ID:
<c64kp3-69p.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!postnews.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<slrnec7ec2.fe1.ajgreenberger@dumky.scores> <hevep3-5c.ln1@ID-107770.user.individual.net> <slrnecc2us.mga.ajgreenberger@dumky.scores>Show Full Headers
Complete Article Headers
Message-ID: <c64kp3-69p.ln1@ID-107770.user.individual.net> Subject: Re: leafnode only_groups_pcre Date: Wed, 26 Jul 2006 13:35:56 +0100 From: Whiskers <catwheezel@operamail.com> References: <slrnec7ec2.fe1.ajgreenberger@dumky.scores> <hevep3-5c.ln1@ID-107770.user.individual.net> <slrnecc2us.mga.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!postnews.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.readers Organization: is an alien concept Lines: 137 X-Trace: individual.net NOMeBjEgFeVURBQdgA2lWQIhU1ozoNYF4zDMw+yvTNjOQBi7pA 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)