🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #17246

Poll: slrn and kill files

#17246
From: da... John E. Davis
Date: Wed, 27 Sep 1995 00:00
129 lines
5487 bytes
Hi,

   This is not really a poll; rather, I am seeking comments on my
implementation of kill files in slrn which will appear in the next release.
Below I have attached a small document that describes the kill file format
as well as some examples of the kinds of kill that will be possible.

   Some of the things that still need sorting out are issues such as whether
or not an article that is killed be simply marked as delete or actually
killed.  Since I am really implementing score files, I thing the easiest
thing to do is to mark as read a file that scores poorly but scores above
some minimum score.  Articles that score below this threshold will be
totally ignored.  Any thought here?

   Here is the score file format.  Please send me examples of the kinds of
kill that you would like to do but do not appear possible in the current
implentation as described below.

   Thanks,
   --John

----- score files ------------
Basic Idea:

  slrn awards an article points by giving it a score.  If the score for the
article is less than zero, the article is killed.  The purpose of the score
file is to define the set of tests that an article must go through to
determine the score.  The score may be based on any of the following header
items:

      * Subject
      * From
      * Xref
      * References
      
as well as the newsgroup that the article is part of.
  
Score file format:

  The format of the file is very simple (See below for an explicit example).
The file is divided into sections delimited by a newsgroup enclosed in
square brackets.  The name may contain the `*' wild card character.  Comments
begin with the `%' character.  Leading whitespace is ignored.

Each section consists of comment lines, empty lines or keyword lines.  Only
the keyword lines are meaningful and all leading whitespace is ignored.  A
keyword line begins with the name of the keyword followed immediately by a
colon and one space.  The rest of the lines must contain a regular
expression.  A group of keywords defines a test that is given to the header
of the article.  The `Score' keyword is used to assign a score to the header
if the header passes the test.  It also serves to delimit tests.  The score
can be any positive or negative integer.  However there are two special
values: 9999 and -9999.  If the score for an individual test is one of these
two values, any following tests are skipped and the article is simply given
one of the two special values.

In the current implementation, only the following keywords are valid:

    Score
    Subject
    From
    Newsgroups
    Xrefs
    References

Here is a sample slrn score file:
-------------------------------------------------------------  
  [news.software.readers]
     Score: 9999
     % All slrn articles are good
     Subject: slrn
  
     Score: 9999
     % This is someone I want to hear from
     From: davis@space\.mit\.edu

     Score = -9999
     Subject: \<f?agent\>

  [comp.os.linux.*]
     Score: -10
     Subject: swap
     
     Score: 20
     Subject: SunOS
      
     Score: 50
     From: Linus
     
     % This person I want nothing to do with unless he posts about 
     % `gizmos' but only in comp.os.linux.development.*
     Score: 9999
     From: someone@who\.knows\.where
     Subject: gizmo
     Newsgroup: development
     
     Score: -9999
     From: someone@who\.knows\.where
--------------------------------------------------------  

This file consists of two sections.  The first section defines a set of
tests applied to the news.software.readers newsgroups.  The second section
applies to the comp.os.linux newsgroups.

The first section consists of three tests.  The first test applies a score
of 9999 to any subject that contains the string `slrn'.  The second test
applies to the `From'.  It says that any article from da...@space.mit.edu
gets scores 9999.  The third test gives a score of -9999 to any article
whose subject contains the word `agent'.  Since tests are applied in order,
if an article contains both `slrn' and `agent', it will be given a score of
9999 since 9999 is a special score value.

The second section is more complex.  It applies to the newsgroups
comp.os.linux newsgroups and consists of 5 tests.  The first three are
simple: -10 points are given if the subject contains `swap', 20 if it
contains SunOS, and 50 if the article is from someone named `Linus'.  This
means that if Bill@Somewhere writes an article whose subject is `Swap, Swap,
Swap', the article is give -10 points.  However, if the Linus writes an
article with the same title, it is given -10 + 50 = 40 points.

The last two tests serve to filter out posts from someone@who.knows.where
unless he posts about `gizmos' in one of the comp.os.development newsgroups.



  

Technical Details
Message-ID: <44ch1i$1js@senator-bedfellow.MIT.EDU>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <44ch1i$1js@senator-bedfellow.MIT.EDU>
Subject: Poll: slrn and kill files
Date: Wed, 27 Sep 1995 00:00:00 +0000
From: da...@space.mit.edu (John E. Davis)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mail
X-Deja-AN: 110851095
Distribution: world
Organization: Center for Space Research
Reply-to: da...@space.mit.edu
Newsgroups: news.software.readers,alt.lang.s-lang,alt.sources.d