Article View: news.software.readers
Article #80987[slrn] persistent scoring - new patch
From: Jurriaan (note: this is a workin...
Date: Fri, 29 Jun 2001 18:09
Date: Fri, 29 Jun 2001 18:09
145 lines
5060 bytes
5060 bytes
I have uploaded a new version of my patch-set against slrn-0.9.7.1 to
http://www.xs4all.nl/~thunder7
What's new:
- use # to tag an entire thread (and fixed the 'the cursor zooms down'
bug).
- You can now enter persistent scores in your scorefile.
Great to kill follow-ups to trolls on dialup-accounts.
You'll need gdbm (a library of functions implementing a hashed database
on a disk file from GNU).
Good luck,
Jurriaan
Here is the README.persistent file:
Intro:
======
Persistent scoring is scoring that persists into a thread.
How to kill every post by and followup to 'Tom Troll'
=====================================================
Let's say you have the following thread:
message1
+- message2
+- message3
+-message4
+-message5
+- message5
+-message6
Now message1 is a message by a known Troll, and you don't want to see
message2,3,4,5,6. But since the troll posts using a variable msg-id,
you can't filter him and his followups out.
Enter the Persistent Score:
[*]
Persistent Score:= -9999
From: Tom Troll
suddenly, message2 inherits the -9999 score from message1 and is killed
also.
Suppose message5 is a message also by this troll. It won't inherit, since
:= denotes 'use this score immediately' - so once the normal rule matches,
it's killed right away.
How to mark posts by and followup-to in a positive way:
=======================================================
Suppose you want to keep track of postings by a certain Claire Omp.
It's easy to score her postings in slrn -
[*]
Score:= 9999
From: Claire Omp
But you want here followups too, and she posts using Agent.
Use a persistent score:
[*]
Persistent Score:= 9999
From: Claire Omp
message1 [Claire]
+- message2 [John]
+- message3 [Jones]
+-message4 [Claire]
+-message5 [Rick]
+- message5 [Harry]
+-message6 [Jones]
Given this thread, the score-rule leads to the following scores:
message1 [Claire] 9999
+- message2 [John] 9999
+- message3 [Jones] 9999
+-message4 [Claire] 9999
+-message5 [Rick] 9999
+- message5 [Harry] 9999
+-message6 [Jones] 9999
But if you want to score Claire a little bit lower, and don't use a :=
score
[*]
Persistent Score: 2000
From: Claire Omp
you get:
message1 [Claire] 2000
+- message2 [John] 2000
+- message3 [Jones] 2000
+-message4 [Claire] 6000
+-message5 [Rick] 2000
+- message5 [Harry] 2000
+-message6 [Jones] 2000
What happened to message4? It references both message1 and message3,
inheriting a score of 2000 from both. Then it matches the score rule
itself, which adds another 2000.
This is hard to prevent, given that when we score message4, we can't
always know that message1 was scored by the same rule. You may have
changed the score-file in between. Message1 may have been expired.
If you have changed the scorefile, the new regular expression may
still match the same values as the old one.
For this reason, you get a warning when you use a persistent score
without := on startup of slrn.
Technical Details:
==================
All persistent scores are stored in a database file (GNU gdbm).
We store a key (the message-id) and data, composed of the score, the date
of expiration and the flags (the RETURN_THIS_SCORE flag).
If we apply a score to a header, we check if this is a persistent score.
If so, we check if we must store it. New persistent scores are always
stored. Otherwise, we store it if the new score has RETURN_THIS_SCORE
and the old one hasn't, or if the absolute value of the new score is
higher than the absolute value of the old score.
An expired score is automatically deleted. When running slrnpull --expire,
the database is reorganized (before that, when scores are deleted, the
database doesn't grow any smaller).
--
BOFH excuse #393:
Interference from the Van Allen Belt.
GNU/Linux 2.4.5-ac19 SMP/ReiserFS 2x1402 bogomips load av: 0.34 0.08 0.03
Technical Details
Message-ID:
<slrn9jp631.r8j.no_spam_here@middle.of.nowhere>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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!transit.news.xs4all.nl!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <slrn9jp631.r8j.no_spam_here@middle.of.nowhere> Subject: [slrn] persistent scoring - new patch Date: Fri, 29 Jun 2001 18:09:12 +0000 From: no_spam_here@rivierenland.xs4all.nl (Jurriaan (note: this is a working address!)) 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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!transit.news.xs4all.nl!not-for-mail Newsgroups: news.software.readers Organization: XS4ALL Internet BV Lines: 144 NNTP-Posting-Host: rivierenland.xs4all.nl X-Trace: news1.xs4all.nl 993838152 5178 194.109.14.47 (29 Jun 2001 18:09:12 GMT) X-Complaints-To: abuse@xs4all.nl NNTP-Posting-Date: 29 Jun 2001 18:09:12 GMT X-Face: b$-F+98,@$_I=*ODq'<K2(OA)qC&,(GP=z2^`4dwQwy&e;!|R?>")k9FH3?YC+%*kF\=<Rx"Hy2_eyMtnFSiO8 User-Agent: slrn/0.9.7.1-jwk (Linux)