http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5258


[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|meta SOMERULE (__SOMERULE_* |meta SOMERULE
                   |> 5)                        |(/__SOMERULE_/) > 5




------- Additional Comments From [EMAIL PROTECTED]  2007-03-26 04:06 -------
Since SpamAssassin is all about regexps, I decided to implement it using
regexpes rather than globbing, for more expressiveness.

I'm proposing the patch attached as meta_regexp.patch, which allows the 
following:

body AA_1 /aa/
body AA_2 /bb/
meta AA_MULTI_2 (/AA_[0-9]+/) >= 2
meta AA_MULTI_3 (/AA_[0-9]+/) >= 3
body AA_3 /cc/
body AA_4 /dd/

Notes:
- Regular expressions have to be enclosed in (/.../), including the parentheses.
 This makes it easy to lex, otherwise arithmetic operators might confuse things.
- Flags would have to be specified like (/(?i).../) instead of (/.../i), though
I don't see any regexp flags being useful at the moment.
- Regexp expansion is done at check time, so that more rules can be added after
the meta test is defined.
- Meta rules without (/.../) are unaffected, and this used to be
undefined/illegal behavior

Regards, Karl




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to