On Sat, Jul 02, 2005 at 02:09:37AM -0400, Parv wrote:
I have the following recipe to weed out Subjects: w/ very low number
of [a-z] characters ...
[most stuff deleted]
:0 D
* $=
* -1^1 subj ?? ()[a-z]
/dev/null
# Part 3
:0 D
* $=
* 2^1 subj ?? ()[A-Z][^a-z]
* $ 1^2 subj ?? ()[${WS}][${WS}][${WS}]
/dev/null
[some deleted]
score: 45
procmail: Match on "="
procmail: Score: 0 0 "()[a-z]"
procmail: Match on "="
My problem lately has been that "$=" is assigned 0 -- in 2d & 3d parts
-- instead of the score of the last matched recipe. Or, it seems to me
that procmail is parsing all "* $=" lines as if i had written "* $ =",
so tries to match a "=" (in the headers) & fails.
The trouble is that you need a $ expandor in those conditions
where the token appear, and you need to turn them into scoring
tokens, anyway:
:0 D
* $ $=^0
* -1^1
/dev/null
You also need to make sure $= will never come up in either
part undefined.
You could streamline this whole thing quite a bit, but
I am out of time to give more hints right now.
--
dman
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail