procmail
[Top] [All Lists]

Re: spamassassin hit capturing (solution)

2003-07-20 14:53:22
Hello all,

        Problem solved.

Apparently in order for a regex to be saved to $MATCH the section in brackets must be preceded by this: \/

        Here is the working recipe:

MAXSPAM=15.0
:0
* ^X-Spam-Status: Yes
* hits\=\/[0-9\.]+
{
        LOG="Checking Spam Score... ($MAXSPAM vs $MATCH)$NL"

        :0
        * $ -$MAXSPAM^0
        * $ ${MATCH}^0
        {
                LOG="   Spam Score Too High ($MAXSPAM+) - Dropped$NL"

                :0
                /dev/null
        }
}

        Thanks to those who made an effort.
--

-----------------------------------------------
Phil Hilton
philip(_dot_)hilton(_at_)maine(_dot_)edu

Oracle - You need a database. Larry needs a new boat.
 MySQL - Larry can buy his own damn boat.

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