You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Rudy Gevaert <ru...@ugent.be> on 2009/05/25 17:12:21 UTC

generate message with a specific score

Dear List,

Is it possible to generate a rule that when it applies gives the  
message that specific score? If so, how do I do it?

I would use this to test my rules defined in amavis. So I know that  
e.g. 6.5 is spam, and 6.4 is ham.

Thanks in advance,


-- 
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Rudy Gevaert          Rudy.Gevaert@UGent.be          tel:+32 9 264 4734
Directie ICT, afd. Infrastructuur  Direction ICT, Infrastructure dept.
Groep Systemen                     Systems group
Universiteit Gent                  Ghent University
Krijgslaan 281, gebouw S9, 9000 Gent, Belgie               www.UGent.be
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --


Re: generate message with a specific score

Posted by "McDonald, Dan" <Da...@austinenergy.com>.
On Mon, 2009-05-25 at 23:12 +0200, Rudy Gevaert wrote:
> Hi Matus,
> 
> On Mon, May 25, 2009 at 10:48:25PM +0200, Matus UHLAR - fantomas wrote:
> > On 25.05.09 17:12, Rudy Gevaert wrote:
> > > Is it possible to generate a rule that when it applies gives the message 
> > > that specific score? If so, how do I do it?
> > 
> > every rule gives a specific score when it applies... What do you mean?
> > do you need the whole message to have specific score? If so, why?
> 
> To test the different levels in Amavis.  Amavis uses the score provided
> by SA, so I need to set the score to a specific number to test it...
> 

Didn't see a reply to this, so:

body		CHECKING_123	m#///A TEST OF SCORE 1\.23///#
score		CHECKING_123	1.23
priority	CHECKING_123	-100000
shortcircuit	CHECKING_123	on

You can then flag that particular message to score 1.23 by including the
text ///A TEST OF SCORE 1.23/// in your message.

Make certain you have the shortcircuit plugin enabled, and rinse/repeat
as necessary.

-- 
Daniel J McDonald, CCIE # 2495, CISSP # 78281, CNX
www.austinenergy.com

Re: generate message with a specific score

Posted by Rudy Gevaert <Ru...@ugent.be>.
Hi Matus,

On Mon, May 25, 2009 at 10:48:25PM +0200, Matus UHLAR - fantomas wrote:
> On 25.05.09 17:12, Rudy Gevaert wrote:
> > Is it possible to generate a rule that when it applies gives the message 
> > that specific score? If so, how do I do it?
> 
> every rule gives a specific score when it applies... What do you mean?
> do you need the whole message to have specific score? If so, why?

To test the different levels in Amavis.  Amavis uses the score provided
by SA, so I need to set the score to a specific number to test it...

-- 
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Rudy Gevaert          Rudy.Gevaert@UGent.be          tel:+32 9 264 4734
Directie ICT, afd. Infrastructuur  Direction ICT, Infrastructure dept.
Groep Systemen                     Systems group
Universiteit Gent                  Ghent University
Krijgslaan 281, gebouw S9, 9000 Gent, Belgie               www.UGent.be
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 

Re: generate message with a specific score

Posted by Matus UHLAR - fantomas <uh...@fantomas.sk>.
On 25.05.09 17:12, Rudy Gevaert wrote:
> Is it possible to generate a rule that when it applies gives the message 
> that specific score? If so, how do I do it?

every rule gives a specific score when it applies... What do you mean?
do you need the whole message to have specific score? If so, why?

> I would use this to test my rules defined in amavis. So I know that e.g. 
> 6.5 is spam, and 6.4 is ham.

-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
WinError #98652: Operation completed successfully.

Re: generate message with a specific score

Posted by Rudy Gevaert <Ru...@ugent.be>.
On Mon, May 25, 2009 at 11:43:18AM -0400, Michael Scheidell wrote:
>    Rudy Gevaert wrote:
> 
>      Dear List,
> 
>      Is it possible to generate a rule that when it applies gives the message
>      that specific score? If so, how do I do it?
> 
>      I would use this to test my rules defined in amavis. So I know that e.g.
>      6.5 is spam, and 6.4 is ham.
> 
>    use short circuit and change the score?

I don't know what you mean with this, but I'll look it up :)
-- 
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Rudy Gevaert          Rudy.Gevaert@UGent.be          tel:+32 9 264 4734
Directie ICT, afd. Infrastructuur  Direction ICT, Infrastructure dept.
Groep Systemen                     Systems group
Universiteit Gent                  Ghent University
Krijgslaan 281, gebouw S9, 9000 Gent, Belgie               www.UGent.be
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 

Re: generate message with a specific score

Posted by Michael Scheidell <sc...@secnap.net>.
Rudy Gevaert wrote:
> Dear List,
>
> Is it possible to generate a rule that when it applies gives the 
> message that specific score? If so, how do I do it?
>
> I would use this to test my rules defined in amavis. So I know that 
> e.g. 6.5 is spam, and 6.4 is ham.
>
use short circuit and change the score?

if looking at amavisd-new testing, might post to amavisd users group.


-- 
Michael Scheidell, CTO
Phone: 561-999-5000, x 1259
 > *| *SECNAP Network Security Corporation

    * Certified SNORT Integrator
    * 2008-9 Hot Company Award Winner, World Executive Alliance
    * Five-Star Partner Program 2009, VARBusiness
    * Best Anti-Spam Product 2008, Network Products Guide
    * King of Spam Filters, SC Magazine 2008


_________________________________________________________________________
This email has been scanned and certified safe by SpammerTrap(r). 
For Information please see http://www.secnap.com/products/spammertrap/
_________________________________________________________________________