Article View: news.software.readers
Article #181551Re: [scoring] Beginnings of a generalised scoring FAQ
From: Richard Steiner
Date: Fri, 10 Mar 2006 03:33
Date: Fri, 10 Mar 2006 03:33
101 lines
5366 bytes
5366 bytes
Here in news.software.readers,
Peter J Ross <pjr@kookbusters.org> spake unto us, saying:
>Here's question #1: "How do I get a result like the following (in a
>threaded view), on the assumption that threads derived from my posts
>are likely to decrease in interest to me as they progress?":
I don't do anything that elaborate, but in my PC Yarn score file your
example would be encoded as follows:
100 pattern Message-Id: pjr@nntp\.alcatroll\.com>$
50 pattern References: pjr@nntp\.alcatroll\.com>$
40 pattern References: pjr@nntp\.alcatroll\.com>[^>]+>$
30 pattern References: pjr@nntp\.alcatroll\.com>[^>]+>[^>]+>$
20 pattern References: pjr@nntp\.alcatroll\.com>[^>]+>[^>]+>[^>]+>$
10 pattern References: pjr@nntp\.alcatroll\.com>[^>]+>[^>]+>[^>]+>[^>]+>$
It seems to work. :-)
My own solution is much less sophisticated
100 Body rsteiner
100 Body Richard Steiner
50 From: rsteiner@visi.com
50 pattern References: *092yn@visi.com*
>Please help with this potentially useful project!
If it doesn't make my brain hurt too much. :-)
Yarn scoring is relatively simple, and since it's working on downloaded
postings offline (SOUP format) it can score on anything, be it in any
header or in the message body. From the manual (ENGLISH.DOC):
" USING SCORE FILES
Score files contain rules used to automatically calculate a numeric rank,
called a score, for news articles. You can set up the reader so it
doesn't show articles having scores less than a threshold score. A
global score file contains rules applied in all newsgroups. Each
newsgroup can have a separate score file containing rules that are also
applied in that newsgroup.
A rule in a score file has the format
<points> <where> <string>
where
<points>
is the number of points added or subtracted if the rule matches the
article. It is a positive or negative number. An article's score
is the total points of all matching rules in the global score file
and the newsgroup score file.
<where>
names an article header to search, such as "From:", "Subject:" or
"Message-ID:". You can name any header that might appear in an
article header. You can also specify two special options. The
"Header" option searches the entire article header. The "Body"
option searches the article body. Searching the "From:", "Subject:"
and "Message-ID:" fields is significantly faster than the other
search options.
<string>
is the string to search for. All searches are case-insensitive. If
the optional keyword "pattern" appears between <points> and <where>,
the string is interpreted as a regular expression.
A score file entry in the form
killthreshold <n>
sets the kill threshold to <n> points. The default kill threshold is 0.
Articles having scores less that this threshold are marked as already
read, and you normally will not see them.
Blank lines and lines beginning with the # character are ignored.
Here is an example score file that the author uses for the
alt.usenet.offline-reader newsgroup.
# I have little interest in Forte Agent.
-1 Subject: Agent
-1 Subject: Forte
-1 pattern Subject: \bFA\b
# But I am interested in Yarn and SOUP.
10 Subject: Yarn
5 Subject: SOUP
Press [Shift-E] at the newsgroup selection level to edit the global score
file. This starts your configured editor program on the global score
file. Press [Shift-E] while inside a newsgroup to edit the score file
specific to the newsgroup."
--
-Rich Steiner >>>---> http://www.visi.com/~rsteiner >>>---> Mableton, GA USA
OS/2 + eCS + Linux + Win95 + DOS + PC/GEOS + Executor = PC Hobbyist Heaven!
WARNING: I've seen FIELDATA FORTRAN V and I know how to use it!
The Theorem Theorem: If If, Then Then.
Technical Details
Message-ID:
<AOPEEpHpvGxY092yn@visi.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!border2.nntp.dca.giganews.com!nntp.giganews.com!transit3.readnews.com!news-out.readnews.com!npeer.de.kpn-eurorings.net!newsfeed.freenet.de!newsfeed0.kamp.net!newsfeed0.kamp.net!213.239.142.2.MISMATCH!feeder.xsnews.nl!sn-ams-06!sn-xt-ams-05!sn-post-ams-02!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mailReferences:
<slrne0hq5h.7vs.pjr@nntp.alcatroll.com>Show Full Headers
Complete Article Headers
Message-ID: <AOPEEpHpvGxY092yn@visi.com> Subject: Re: [scoring] Beginnings of a generalised scoring FAQ Date: Thu, 09 Mar 2006 22:33:20 -0500 From: rsteiner@visi.com (Richard Steiner) References: <slrne0hq5h.7vs.pjr@nntp.alcatroll.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!border2.nntp.dca.giganews.com!nntp.giganews.com!transit3.readnews.com!news-out.readnews.com!npeer.de.kpn-eurorings.net!newsfeed.freenet.de!newsfeed0.kamp.net!newsfeed0.kamp.net!213.239.142.2.MISMATCH!feeder.xsnews.nl!sn-ams-06!sn-xt-ams-05!sn-post-ams-02!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Newsgroups: news.software.readers Organization: FIELDATA FORTRAN ENTHUSIASTS CLUB Reply-To: rsteiner@visi.com MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: Yarn for OS/2 v0.92 X-Machine-Specs: Micron PPro/200 w/192MB RAM + OS/2 Warp 4 FP 15 X-Stuff-Running: There are 60 Processes with 183 Threads. X-Armor-Class-From-Above: -17 User-Agent: VSoup v1.2.9.49 [OS/2] X-Complaints-To: abuse@supernews.com Lines: 101