On Mon, Apr 21, 2003 at 10:42:42PM +0200, Björn Lindström wrote:
I am trying to use this rule to send mail that SpamAssassin gives a
"spam-level" of at least 7 to /dev/null
:0
* ^X-Spam-Level: \*{7,}
/dev/null
The headers that should match can look like this:
X-Spam-Level: ************
However, the nasty spam just slips right through. Does anyone have an
idea about what I have missed here?
procmail regexen do not support curly brace quantifiers; the only
quantifiers supported are '*', '+', and '?'. To get a match in your
case you'll need to explicitly insert that number of asterisks:
* ^X-Spam-Level: \*\*\*\*\*\*\*
This looks like Spam Assassin; you might also try matching the actual
spam score:
MAXSPAM=7.90
:0
* ^X-Spam-Status: Yes
* ^X-Spam-Report:[ ]+\/[0-9\.]+
{
:0
* $ -${MAXSPAM}^0
* $ ${MATCH}^0
/dev/null
}
Scott
--
Scott Wiersdorf
scott(_at_)perlcode(_dot_)org
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail