Thread View: news.software.readers
3 messages
3 total messages
Started by Aleksandar Simic
Fri, 09 Jun 2000 00:00
The correct syntax of slrn's killfile ?
Author: Aleksandar Simic
Date: Fri, 09 Jun 2000 00:00
Date: Fri, 09 Jun 2000 00:00
39 lines
1741 bytes
1741 bytes
Hi,
could somebody give me a pointer on how to setup slrn's kill file
correctly ?
This is how I have tried to configure it:
[*]
% Kill all articles which are uppercase, contain $ sign
% and contain the words "linux"
Score: -9999
Subject: \$
~Subject: \c[a-z]
Subject: linux
Subject: Linux
Subject: LINUX
My $HOME/.slrnrc has a line informing slrn where my score/killfile is:
scorefile "/var/spool/news/slrnpull/score"
The permissions for the file are -r--r--r--.
The "[*]" indicates that the above configuration should apply to all
the newsgroups that I read, right ?
Another thing, the second "Subject" line has an "~" in front of it
(and that, by the way, is there already in the example score
file). Does the "~" have some special meaning as used in the above
example?
Despite having the above unwanted subjects, I still get postings with
Linux in them. What am I doing wrong ?
Your constructive replies will be appreciated.
-Alex
Re: The correct syntax of slrn's killfile ?
Author: Thomas Weinbrenner
Date: Fri, 09 Jun 2000 00:00
Date: Fri, 09 Jun 2000 00:00
49 lines
2551 bytes
2551 bytes
alex@NOSPAM.frustum.clara.co.uk (Aleksandar Simic) writes: > could somebody give me a pointer on how to setup slrn's kill file > correctly ? > > This is how I have tried to configure it: > > [*] > % Kill all articles which are uppercase, contain $ sign > % and contain the words "linux" > Score: -9999 > Subject: \$ > ~Subject: \c[a-z] > Subject: linux > Subject: Linux > Subject: LINUX [...] > The "[*]" indicates that the above configuration should apply to all > the newsgroups that I read, right ? Yes > Another thing, the second "Subject" line has an "~" in front of it > (and that, by the way, is there already in the example score > file). Does the "~" have some special meaning as used in the above > example? Yes, it means "NOT". You aren't killing "uppercase", you are killing "no lowercase" > Despite having the above unwanted subjects, I still get postings with > Linux in them. What am I doing wrong ? You are using |Score: -9999 which means, that this Score will be applied, if your Subject includes $ and no lowercase and "linux" and "Linux" and "LINUX" If you want to kill an article if only one condition is fulfilled you should use Score:: -9999 -- Thomas Weinbrenner
Re: The correct syntax of slrn's killfile ?
Author: Jens Wahnes
Date: Fri, 09 Jun 2000 00:00
Date: Fri, 09 Jun 2000 00:00
38 lines
1838 bytes
1838 bytes
Aleksandar Simic wrote:
> [*]
> % Kill all articles which are uppercase, contain $ sign
> % and contain the words "linux"
> Score: -9999
> Subject: \$
> ~Subject: \c[a-z]
> Subject: linux
> Subject: Linux
> Subject: LINUX
You need two colons after "Score" if you want to apply the score in
case any of these rules matches. With one colon, the score is given if
all rules given match the article.
As the search is not case sensitive by default, one line with "linux"
should do, "Linux" and "LINUX" are superfluous.
> Another thing, the second "Subject" line has an "~" in front of it
> (and that, by the way, is there already in the example score
> file). Does the "~" have some special meaning as used in the above
> example?
What example score file? Did you take the examples from score.txt?
Everything about scoring is explained there in depth, e.g. that "~" is
used to negate an entry. In your example, that would be NOT having a
lowercase letter, i.e. having an uppercase letter.
Jens
--
"What is robbing a bank compared with founding a bank?"
- Bertolt Brecht
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads