It's been a long time since I first setup my slrn scroe file, and when looking through it today I came across this and realized I don't
remember what it manes anymore, though it seemed important at the time
as it it near the top of the score file.
Score:: -800
~Subject: \c[a-z]
{:
Subject: ^Re:
~Subject: ^Re:.*\c[a-z]
}
Heck I can't even remember how Score:: is different from Score::
On 2021-12-03, Lewis wrote:
It's been a long time since I first setup my slrn scroe file, and when
looking through it today I came across this and realized I don't
remember what it manes anymore, though it seemed important at the time
as it it near the top of the score file.
Score:: -800
~Subject: \c[a-z]
{:
Subject: ^Re:
~Subject: ^Re:.*\c[a-z]
}
Heck I can't even remember how Score:: is different from Score::
'Score:' is an AND (the rule fires if all the conditions are met);
'Score::' is an OR (the rule fires if any condition is met).
And you can nest the boolean operators with the brackets. Here's a
weird example I found in my score file:
Score: 45
{::
Subject: chemical
Subject: chemistry
Subject: lab
}
{::
Subject: supplier
Subject: supplies
Subject: supply
}
That will match any post whose Subject contains one or more word from
each list (in any order).
I don't remember what the \c in your example does, but I'm curious!
~Subject: \c[a-z]
{:
Subject: ^Re:
~Subject: ^Re:.*\c[a-z]
}
It's been a long time since I first setup my slrn scroe file, and when looking through it today I came across this and realized I don't
remember what it manes anymore, though it seemed important at the time
as it it near the top of the score file.
Score:: -800
~Subject: \c[a-z]
{:
Subject: ^Re:
~Subject: ^Re:.*\c[a-z]
}
Heck I can't even remember how Score:: is different from Score::
On 2021-12-03, Lewis wrote:
~Subject: \c[a-z]
The tilde means the rule is inverted and \c means to enable case
sensitivity, so this only matches if the subject was ALL CAPS.
{:
This starts a group, all of the rules in the group have to match.
Subject: ^Re:
~Subject: ^Re:.*\c[a-z]
This is adding an exception for Re:, so Re: ALL CAPS still matches the
rule!
}
You can also add a comment, like Score: -100 % All CAPS, then when you
show the score view (v), it tells you which scores matched! This is
really handy if you have a bunch of complicated rules and not sure what caused a score to be so high/low.
Tavis.
In message <sj6s7ix9at.ln2@news.ducksburg.com> Adam Funk <a24061@ducksburg.com> wrote:
On 2021-12-03, Lewis wrote:
It's been a long time since I first setup my slrn scroe file, and when
looking through it today I came across this and realized I don't
remember what it manes anymore, though it seemed important at the time
as it it near the top of the score file.
Score:: -800
~Subject: \c[a-z]
{:
Subject: ^Re:
~Subject: ^Re:.*\c[a-z]
}
Heck I can't even remember how Score:: is different from Score::
'Score:' is an AND (the rule fires if all the conditions are met);
'Score::' is an OR (the rule fires if any condition is met).
I thought the : and :: applied to subclauses like in your example. I
just didn't remember you could do it on the Score line. I usually
manually create
Score: #
{::
list of or matches
}
And you can nest the boolean operators with the brackets. Here's a
weird example I found in my score file:
Score: 45
{::
Subject: chemical
Subject: chemistry
Subject: lab
}
{::
Subject: supplier
Subject: supplies
Subject: supply
}
That will match any post whose Subject contains one or more word from
each list (in any order).
I don't remember what the \c in your example does, but I'm curious!
Me too!
On 2021-12-04, Tavis Ormandy wrote:
On 2021-12-03, Lewis wrote:
~Subject: \c[a-z]
The tilde means the rule is inverted and \c means to enable case
sensitivity, so this only matches if the subject was ALL CAPS.
I must be missing something --- I thought scoring patterns were case-insensitive by default?
On 2021-12-03, Lewis wrote:
~Subject: \c[a-z]
The tilde means the rule is inverted and \c means to enable case
sensitivity, so this only matches if the subject was ALL CAPS.
You can also add a comment, like Score: -100 % All CAPS
In message <j11fuhF6qfdU1@mid.individual.net> Tavis Ormandy <taviso@gmail.com> wrote:
On 2021-12-03, Lewis wrote:
~Subject: \c[a-z]
The tilde means the rule is inverted and \c means to enable case
sensitivity, so this only matches if the subject was ALL CAPS.
Ah, that makes sense I knew that once.`
You can also add a comment, like Score: -100 % All CAPS
Yes, I gave done that on many newer rules, but not on some of the
originals (I may not have known about commenting back then and didn't go
back and do it when I should have).
Thanks for the explanation.
On 2021-12-04, Adam Funk wrote:
On 2021-12-04, Tavis Ormandy wrote:
On 2021-12-03, Lewis wrote:
~Subject: \c[a-z]
The tilde means the rule is inverted and \c means to enable case
sensitivity, so this only matches if the subject was ALL CAPS.
I must be missing something --- I thought scoring patterns were
case-insensitive by default?
You're not missing anything,
exactly right! They're case-insensitive by
default, but \c enables case-sensitivity. So \c[a-z] only matches
lowercase, but the rule is inverted (the tilde) - so it only matches
*no* lowercase.
On 2021-12-05, Lewis wrote:
In message <j11fuhF6qfdU1@mid.individual.net> Tavis Ormandy <taviso@gmail.com> wrote:
On 2021-12-03, Lewis wrote:
~Subject: \c[a-z]
The tilde means the rule is inverted and \c means to enable case
sensitivity, so this only matches if the subject was ALL CAPS.
Ah, that makes sense I knew that once.`
You can also add a comment, like Score: -100 % All CAPS
Yes, I gave done that on many newer rules, but not on some of the
originals (I may not have known about commenting back then and didn't go
back and do it when I should have).
It's just like putting comments in programs --- by the time you
realize you need them to figure out what you meant, it's too late.
On 2021-12-03, Lewis wrote:
~Subject: \c[a-z]
The tilde means the rule is inverted and \c means to enable case
sensitivity, so this only matches if the subject was ALL CAPS.
{:
This starts a group, all of the rules in the group have to match.
Subject: ^Re:
~Subject: ^Re:.*\c[a-z]
This is adding an exception for Re:, so Re: ALL CAPS still matches the
On 2021-12-04, Tavis Ormandy wrote:
On 2021-12-03, Lewis wrote:
~Subject: \c[a-z]
The tilde means the rule is inverted and \c means to enable case
sensitivity, so this only matches if the subject was ALL CAPS.
Why can't the first line be Subject: \c[A-Z] instead?
On 2021-12-09, Jeremy Brubaker wrote:
On 2021-12-04, Tavis Ormandy wrote:
On 2021-12-03, Lewis wrote:
~Subject: \c[a-z]
The tilde means the rule is inverted and \c means to enable case
sensitivity, so this only matches if the subject was ALL CAPS.
Why can't the first line be Subject: \c[A-Z] instead?
That would match any subject with a capital letter (rather than any
subject *without* a lowercase letter).
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 483 |
Nodes: | 16 (3 / 13) |
Uptime: | 148:30:51 |
Calls: | 9,591 |
Calls today: | 5 |
Files: | 13,676 |
Messages: | 6,148,230 |
Posted today: | 1 |