🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #20670

Re: Need a news reader with good kill features

#20670
From: John E. Davis
Date: Wed, 17 Apr 1996 00:00
61 lines
2568 bytes
On 17 Apr 1996 17:29:54 GMT, Tom Christiansen <tchrist@mox.perl.com>
wrote:
 : The best I know is Tim Pierce's scoring module for trn.  Here's an example:
 : 
 :    sub local_score {
 :        my ($article) = @_;
 :        my (@newsgroups);
 :    # Get a list of newsgroups from the Xref: header.
 :        @newsgroups = split (/\s+/, $article->{xref});
 :        shift @newsgroups;
 :    # Articles crossposted to more than three groups get -50.
 :        if (@newsgroups > 3) {
 : 	   score_art ($article, -50);
 :        } else {
 :    # Check each group in the @newsgroups array: if it's
 :    # not a comp.* group, score the article -50 then, too.
 : 	   foreach $n (@newsgroups) {
 : 	       next if $n =~ /^comp\./;
 : 	       score_art ($article, -50);
 : 	       last;
 : 	   }
 :        }
 :    }

While I agree that this method of scoring is very powerful, I want to point
out that one can perform this particular score using slrn via:

[LOCAL_OR_GLOBAL_NEWSGROUP_NAME]

% If cross-posted to 4 or more groups, give score of -50 and finish scoring.
   Score: =-50
    Xref: :.*:.*:.*:
    
% If cross-posted to AT LEAST ONE group and but not comp, give -50
   Score: -50
    Xref: :
   ~Xref:  comp\.

% If cross-posted to AT LEAST TWO groups but two are not comp, give -50
   Score: -50
    Xref: :.*:
   ~Xref:  comp\..* comp\.

% If cross-posted to AT LEAST THREE groups but 3 are not comp, give -50
   Score: -50
    Xref: :.*:.*:
   ~Xref:  comp\..* comp\..* comp\.

Of course, I know that you can easily come up with a score that slrn cannot
handle; but, this is not one of them.

Incidently, how fast are you able to perform scores on, e.g., 5000 articles?
Just curious.
Thanks,
-- 
John E. Davis                   Center for Space Research/AXAF Science Center
617-258-8119                    MIT 37-662c, Cambridge, MA 02139
http://space.mit.edu/~davis


Technical Details
Message-ID: <slrn4naigk.kd1.davis@wiwaxia.mit.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <4kei31$pjb@news.mr.net> <4l39qi$h4b@csnews.cs.colorado.edu>

Show Full Headers
Complete Article Headers
Message-ID: <slrn4naigk.kd1.davis@wiwaxia.mit.edu>
Subject: Re: Need a news reader with good kill features
Date: Wed, 17 Apr 1996 00:00:00 +0000
From: davis@space.mit.edu (John E. Davis)
References: <4kei31$pjb@news.mr.net> <4l39qi$h4b@csnews.cs.colorado.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 148035271
Organization: Center for Space Research
Reply-to: davis@space.mit.edu
Newsgroups: news.software.readers