Article View: news.software.readers
Article #119994Re: slrn scorefile
From: J.B. Nicholson-Owens
Date: Mon, 10 Feb 2003 04:46
Date: Mon, 10 Feb 2003 04:46
81 lines
4031 bytes
4031 bytes
Faux_Pseudo wrote:
> [...] if the subject matches "cash" it checks to see if the word "Johnny"
> appears on the line and if so then don't kill the article.
I don't think this approach will get you the maintenance-free scorefile you
desire. You could promote "johnny cash" to a small score that won't trigger
any kind of highlighting:
[*]
Score: 1
Subject: johnny cash
But that means entering in a list of bands or performers and keeping it up
to date. Yuck.
But maybe there aren't many names that conflict with spam words. So
1. "cash" is killed (I'm inferring this) AND
2. "johnny cash" is spared.
There is still some maintenance involved here (yuck). The easy way is just
to kill ("cash" without "johnny cash") and leave "johnny cash" alone:
[*]
Score: =-9999
Subject: cash
~Subject: johnny cash
Focusing on the spam would seem to be the key.
> But I want a quick way of pulling it off without creating a whole new
> entry.
By default the scorefile is functionally empty. I don't know how you're
going to score on anything without making a score entry. What do you mean
here?
> It seems cumbersome to have a nice long list of something like
> band names then have to go in and extract some names and put them in
> their own entry because it conflicts with something else.
Eventually any scoring approach will require maintenance. You're string
searching, after all, and either you focus on band/performer names or spam
strings. But at some point some long list will need to be created. I
figure spam will not change as frequently as band/performer names, so:
[*]
Score: =-9999
Subject: make
{::
Subject: cash
Subject: money
Subject: sex
Subject: girl
SubjecT: hot
Subject: now
Subject: love
Subject: war
Subject: \([][~!$*@()]\)\1\1\1
}
{::
Subject: cash
Subject: money
Subject: sex
Subject: girl
SubjecT: hot
Subject: now
Subject: love
Subject: war
Subject: \([][~!$*@()]\)\1\1\1
}
is a good starting point. It says "make" plus any of the following (cash,
money, now, etc.) twice. The last entry in each set matches 4 or more
neighboring repeats of the same character from the following set of
characters: "]", "[", "~", "!", "$", "*", "@", "(", or ")". I wasn't sure
about using range notation ("\{x[,y]\}"), in slrn so I used regular
expression substring matching ("\1", "\2", "\3", etc.).
Happy newsreading.
Technical Details
Message-ID:
<slrnb4ed79.t0l.jbn@forestfield.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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.nacamar.de!fu-berlin.de!uni-berlin.de!forestfield.ORG!not-for-mailReferences:
<slrnb42n5j.2me.sl@slc.corcorancreations.com> <7a48h-vl1.ln1@news.gates_of_hell.INVALID> <slrnb42smu.2qj.sl@slc.corcorancreations.com> <fna8h-0v2.ln1@news.gates_of_hell.INVALID> <slrnb43dje.2hk.no.spam@dora.blinkynet.net> <esr8h-5j4.ln1@news.gates_of_hell.INVALID> <dov8h-a45.ln1@news.gates_of_hell.INVALID> <g919h-hp5.ln1@news.gates_of_hell.INVALID> <b1tfm1$168r17$1@ID-73175.news.dfncis.de> <6aaah-vif.ln1@news.gates_of_hell.INVALID> <b1u077$16gaf6$1@ID-73175.news.dfncis.de> <slrnb45bfh.hb.removethis@gmx.net> <slrnb4dgjv.5c.Faux_Pseudo@fugozi.cx1209071-a>Show Full Headers
Complete Article Headers
Message-ID: <slrnb4ed79.t0l.jbn@forestfield.org> Subject: Re: slrn scorefile Date: Mon, 10 Feb 2003 04:46:52 +0000 From: "J.B. Nicholson-Owens" <jbn@forestfield.org> References: <slrnb42n5j.2me.sl@slc.corcorancreations.com> <7a48h-vl1.ln1@news.gates_of_hell.INVALID> <slrnb42smu.2qj.sl@slc.corcorancreations.com> <fna8h-0v2.ln1@news.gates_of_hell.INVALID> <slrnb43dje.2hk.no.spam@dora.blinkynet.net> <esr8h-5j4.ln1@news.gates_of_hell.INVALID> <dov8h-a45.ln1@news.gates_of_hell.INVALID> <g919h-hp5.ln1@news.gates_of_hell.INVALID> <b1tfm1$168r17$1@ID-73175.news.dfncis.de> <6aaah-vif.ln1@news.gates_of_hell.INVALID> <b1u077$16gaf6$1@ID-73175.news.dfncis.de> <slrnb45bfh.hb.removethis@gmx.net> <slrnb4dgjv.5c.Faux_Pseudo@fugozi.cx1209071-a> 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!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.nacamar.de!fu-berlin.de!uni-berlin.de!forestfield.ORG!not-for-mail Newsgroups: news.software.readers Organization: Forest Field OmniMedia Lines: 80 NNTP-Posting-Host: forestfield.org (208.216.67.173) X-Trace: fu-berlin.de 1044852412 43452305 208.216.67.173 (16 [35848]) Mail-Copies-To: nobody User-Agent: slrn/0.9.7.4pl2 (GNU/Linux)