On Sun, 2011-11-27 at 20:04 +0000, RW wrote:
> On Sun, 27 Nov 2011 19:31:22 +0000
> Martin Gregorie wrote:
> 
> I also notice, because I tried it to see what happens, that you can
> > submit a score line for a rule with a __ name prefix without an error
> > being reported. Is that line silently thrown away?
> 
> I don't know. You could try it, but since it's a perverse thing to
> do, and not documented, I would regard it as undefined behaviour.

> If you actually want give a score to a hidden rule (to see whether
> it's being hit), I would do it this way:
> 
I set up: 

body  US_MG1 /message/
score US_MG1 5.0
meta  US_MGM1  (US_MG1)

and ran it against a message containing 'message'. Both fired, adding 6
to the score compared to the score when these rules were not part of the
configuration, then I added '__' to all three references to US_MG1 and
ran it again. This time only 1 was added to the score.

So, my guess is right: if a message with a '__' name prefix is supplied
with a score line it is silently discarded: would it be better if an
error was output too? 
 

Martin


Reply via email to