Article View: news.software.readers
Article #19254Re: minor irritations with slrn
From: da... John E. Davis
Date: Fri, 16 Feb 1996 00:00
Date: Fri, 16 Feb 1996 00:00
50 lines
1953 bytes
1953 bytes
On 15 Feb 1996 23:59:17 GMT, Art Walker <wal...@mnscorp.com>
wrote:
: Will there be a slang hook for custom score/kill functions (I want the ability
: to kill articles if the subject line contains more uppercase letters than
: lowercase ones)?
Although this would not be a priority, it should be possible. For example,
consider the following score:
[sci.*]
Score:: -9999
Xref: astrology
Subject: \<money\>
Subject: \<cash\>
This kills all articles in sci.* that are posted to an astrology newsgroup,
or whose subject contains a reference to money or cash. Now, each of the 3
tests return a boolean value (yes or no) that the score is based on. Perhaps
I could extend the syntax of the score file so that a function could be
called, e.g.,
[sci.*]
Score:: -9999
Xref: astrology
Subject: \<money\>
Subject: \<cash\>
@Subject: my_upper_lower_test
where the last line would mean to call the S-Lang function
`my_upper_lower_test' with the subject line as its argument. This function
would return a zero or non-zero value, e.g.,
define my_upper_lower_test (subject)
{
.
.
if (...) return 0;
.
.
return 1;
}
--John
Technical Details
Message-ID:
<slrn4i857k.ers.davis@wiwaxia.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-mailReferences:
<slrn44i51kt.i97.mist@yoyo.cc.monash.edu.au> <slrn4i5e6i.cns.davis@wiwaxia.mit.edu> <4g0hcl$6mv@legba.synergy.net>Show Full Headers
Complete Article Headers
Message-ID: <slrn4i857k.ers.davis@wiwaxia.mit.edu> Subject: Re: minor irritations with slrn Date: Fri, 16 Feb 1996 00:00:00 +0000 From: da...@space.mit.edu (John E. Davis) References: <slrn44i51kt.i97.mist@yoyo.cc.monash.edu.au> <slrn4i5e6i.cns.davis@wiwaxia.mit.edu> <4g0hcl$6mv@legba.synergy.net> 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: 139581779 Organization: Center for Space Research Reply-to: da...@space.mit.edu Newsgroups: news.software.readers,alt.lang.s-lang