Jack L. Stone [mailto:jacks(_at_)sage-american(_dot_)com] wrote:
At 11:08 AM 10.23.2007 +0200, Dallman Ross wrote:
I would like to figure out how to set the score to define
the XSSSCORE variable as shown by your recipe match examples:
As with this one:
XSSScore = (how to define this?)
THRESHOLD = 10 # (change at will)
# . . . .
:0
* ! XSSScore ?? -
* $ -$XSSScore ^0
* $ $THRESHOLD ^0
{ } # do nothing
:0 E
{ ABOVE_THRESHOLD = TRUE }
I actually showed how, but if you weren't looking for it
it may not have been obvious:
dr>> :0
dr>> * ^X-Spam-Status: Yes, score=\/[^ ]+
dr>> { XSSScore = $MATCH }
dr>>
dr>> Now you also have a variable you can use in the rest
dr>> of your testing.
We are using the match operator here -- "\/" is the match
token -- to find and save the non-space string value that comes
after "score=" on the condition line.
Do note also that vars are case-sensitive.
--
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