procmail
[Top] [All Lists]

Re: extract number out of body and do condition on it

2001-07-03 11:50:08
Unfortunately, following up on myself:
| 
| MATCH    # not sure if this is necessary
| 
| :0 Bc
| * ^Alert[       ]+\/[0-9]+
| * $ ? test $MATCH -gt 40
| ! someone(_at_)somewhere
|     

Unsetting MATCH is not necessary - a verbose log clearly shows procmail
unsetting it when it encounters the MATCH operator. (Verbose logs are a
wonderful thing.)  And the "$" isn't necessary (but doesn't hurt)
beginning the second condition. $MATCH is expanded without it
(presumably) because $SHELL is invoked to run test.

-- 
                         /"\
Don Hammond              \ /     ASCII Ribbon Campaign
Raleigh, NC US            X        Against HTML Mail,
                         / \      and News Too

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail