https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6641

Adam Katz <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #6 from Adam Katz <[email protected]> 2011-08-02 18:49:44 UTC ---
(In reply to comment #0)
> meta      MANY_MUMBLE   __MUMBLE=5

I believe MANY_MUMBLE would *always* fire since the evaluation of "__MUMBLE=5"
would always be true (since there is no case in which __MUMBLE cannot be
assigned the value of five).

I believe you wanted:  __MUMBLE==5

Meta rules are basically perl eval expressions; I've run into metas that used
the ternary operator as well as various assigned values, e.g.

meta __FOO      BAR + BAZ + BADA + BING + BANG + BOOM
meta __CEILING  __FOO > 2 ? 2 : __FOO
meta RESULT     BIZZ + BUZZ + FIZZ + __CEILING > 2

Note that I do *NOT* advocate doing this, and there are better/cleaner ways of
implementing the same logic, but I was surprised to see that this actually
works.

-- 
Configure bugmail: 
https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to