procmail
[Top] [All Lists]

Logging what matched

1997-09-07 14:50:37

I've got a lot of various body regexes in one long pattern-matching-recipe,  
that looks like this

# Spam Message Body Patterns
:0 B
* (http://members\.tripod\.com/\~abei/k0003\.html|\
   This is a one time mailing|\
   Warning\:  You must be over 21 to |\
   please accept our apologies|\
   Mailloop is an Industrial Bulk Email and Newsgroup Broadcasting Program|\
   For removal from any of our future mail|\
   We certainly DO NOT want to send ANY email to ANYONE who|\
   Read This Twice|\
   nternet.*marketing|\
   ABSOLUTELY GUARANTEED|\
   100\%.*GUARANTEED|\
   NO Credit Checks|\
   Forced Matrix|\
   income.*opportunity|\
   CAN'T AFFORD TO MISS)
{
        :0fhw
        | $FORMAIL -A"X-SpamChecker: BodyRegEx"
}

Is there some way I can set $MATCH to what exactly this matched?

It would help with the (few) mis-hits I get with this receipe, which is  
actually much longer than the above....

Thanks

TjL, the $MATCH-clueless one


<Prev in Thread] Current Thread [Next in Thread>