Subject: | Cannot use ? : in meta tests |
I'm writing a program to translate some procmail scripts into
Mail::SpamAssassin rules.
Procmail has a feature that lets it score matches and then check
the total.
SpamAsssassin can do arithmatic in its meta rules.
I thought I had a solution and coded it up. Turns out that
SpamAssassin cannot handle : ? constructs in the meta rules.
In version 2.63, lib/Mail/SpamAssassin/PerMsgStatus.pm handles
this parsing at line 2130:
$rule =~ m/([\w\.\[][\w\.\*\?\+\[\^\]]+|[\(\)]|\|\||\&\&|>=?|<=?|==|!=|!|[
\+\-\*\/]|\d+)/g;
Please change add ":" to the list of allowed operators.
Thanks,
-Dave