[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Pan-users] Score file
From: |
Duncan |
Subject: |
Re: [Pan-users] Score file |
Date: |
Sat, 7 Dec 2013 11:39:34 +0000 (UTC) |
User-agent: |
Pan/0.140 (Chocolate Salty Balls; GIT 7161f50 /usr/src/portage/src/egit-src/pan2) |
Tom Tanner posted on Fri, 06 Dec 2013 21:00:07 +0000 as excerpted:
> I've been trying to use the score file recently, and I must be reading
> the documentation wrong.
>
> I'd have thought that a rule like this:
>
> Score: 100
> Subject: \.this
> ~Subject: \.except.*\.this
>
> Would score 100 for anything that matched the first and didn't match the
> second. Instead, it appears to be scoring 100 for pretty much anything.
>
> Any help in using the scorefile would be appreciated.
You're not reading the docs incorrectly, but some months ago I did some
testing and came to the conclusion that pan's AND scoring (which should
be single colon after the score keyword) is broken -- it's treating
EVERYTHING as OR scoring (which should be double-colon).
With that treated as an OR, indeed, that score will match nearly
everything! =:^(
All my normal scoring rules are double-colon/OR, so I can't be sure when
it broke, but I do believe it worked at one point some years ago.
But as zlynx already pointed out, as long as you're using incremental
scoring (not =/absolute), it's reasonably easy to do what you want by
configuring a second score with the narrower scope, to reverse the first.
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman