Article View: news.software.readers
Article #199344Re: Pan and SLRN score files - The difference?
From: Peter J Ross
Date: Fri, 11 May 2007 11:13
Date: Fri, 11 May 2007 11:13
123 lines
4869 bytes
4869 bytes
In news.software.readers on Wed, 9 May 2007 17:19:09 +0100, Adam Funk <a24061@ducksburg.com> wrote: > On 2007-05-08, Peter J Ross wrote: > >> Here's an idea. >> >> Score:: =-9999 >> Xref: warez >> Newsgroups: warez >> >> What that *should* do is score expensively on Newsgroups only if the >> Xref rule doesn't apply, since any intelligent software will move on >> after the first successful match. There's also this version: Score: =-9999 Xref: warez Score: =-9999 Newsgroups: warez The order of the rules is still important, for a different reason. However, these examples are quite different from each other: Score:: -50 Xref: warez Newsgroups: warez Score: -50 Xref: warez Score: -50 Newsgroups: warez The effect of the two examples is quite different, and the order makes a difference only in the first one. > Does slrn's scoring algorithm work this way? As far as I can tell, yes. If the first of a set of potential matches in such a rule is matched, the others aren't tested. Here's how my original example works, supposing that alt.foo.warez is available on your server and alt.bar.warez isn't. Step one: Check all posts for an Xref containing "warez". This costs nothing in bandwidth, as long as Xref is part of the XOVER data. Step two: Retrieve the Newsgroups header with XHDR, but *only* for posts that haven't already been matched. Note that this kind of rule is a waste of time and/or bandwidth in the following cases. Case one: Both groups are available on your server. The effect is to retrieve extra headers specifically for articles that will never be matched. This wastes your time and bandwidth. Case two: Neither group is available on your server. The effect is to search XOVER data that will never be matched. This wastes a small amount of CPU time. So there should be two steps in tweaking the scorefile, step two depending on the effect of step one. Step one: Try scoring on Xref alone. Step two (a): If Xref matches no relevant articles, change it to Newsgroups. Step two (b): If Xref matches all relevant articles, leave the rule as it is. Step two (c): If Xref matches only some of the relevant articles, add a Newsgroups pattern as a second option. Here's a practical example. Suppose you wanted to downscore all FortΓ© Agent users, including ones who have worked out how to stop Agent generating a Message-ID. Method one: Score: -50 Message-ID: @4ax\.com> % This is cheap, but doesn't match everything. Method two: Score: -50 X-Newsreader: Forte .* Agent % This matches everything, but is expensive, because % an extra header has to be retrieved for all posts. Method three: Score:: -50 Message-ID: @4ax\.com> X-Newsreader: Forte .* Agent % This matches everything but is a little less % expensive, because the extra header isn't retrieved % for posts that have the distinctive Message-ID. And here are two further examples of what not to do: Example one: Score:: -50 Message-ID: google Path: google % This pointlessly retrieves extra headers that will never % match, because all the matching articles have already been % excluded by Message-ID. Example two: Score:: -50 Xref: news\.softwarez\.readerz Newsgroups: news\.softwarez\.readerz % Testing for an Xref match is a small waste of time because % the group doesn't exist anywhere. [No warez posters or Agent users were harmed in the making of this post.] -- PJR :-)
Technical Details
Message-ID:
<slrnf48juk.3db.pjr@pjr.gotdns.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.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news-out.octanews.net!indigo.octanews.net!authen.yellow.readfreenews.net.POSTED!not-for-mailReferences:
<pan.2007.05.03.11.40.26.188353@Cuppa.tea> <pan.2007.05.03.15.06.43.187000@emteedee.invalid> <slrnf3k3il.j5l.no.spam@thurston.blinkynet.net> <Xns992AE07C8965Demteedee@news.datemas.de> <slrnf41o7n.b2v.pjr@pjr.gotdns.org> <ts89h4-skf.ln1@news.ducksburg.com>Show Full Headers
Complete Article Headers
Message-ID: <slrnf48juk.3db.pjr@pjr.gotdns.org> Subject: Re: Pan and SLRN score files - The difference? Date: Fri, 11 May 2007 11:13:33 +0000 From: Peter J Ross <pjr@example.invalid> References: <pan.2007.05.03.11.40.26.188353@Cuppa.tea> <pan.2007.05.03.15.06.43.187000@emteedee.invalid> <slrnf3k3il.j5l.no.spam@thurston.blinkynet.net> <Xns992AE07C8965Demteedee@news.datemas.de> <slrnf41o7n.b2v.pjr@pjr.gotdns.org> <ts89h4-skf.ln1@news.ducksburg.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!border2.nntp.dca.giganews.com!nntp.giganews.com!news-out.octanews.net!indigo.octanews.net!authen.yellow.readfreenews.net.POSTED!not-for-mail Newsgroups: news.software.readers Reply-To: pjr.spam@gmail.com User-Agent: slrn/0.9.8.1pl2 (Debian) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Lines: 123 Organization: Read Free News NNTP-Posting-Date: 11 May 2007 06:13:33 CDT X-Trace: DXC=h66KShM4\8J1BR:d@Vje=C]AGWjF5PjPI465Ue@WB_5ODk<i^O2O?XN26Z<EbT:a\ElV3mi\haFgH3V78HOHRTYOXeWHE\FokS@