You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by snowcrash+spamassassin <sc...@gmail.com> on 2006/11/13 19:39:47 UTC

what are default rule priorities?

i understand that the fuzzyocr plugin can be set to have a high (900?)
priority, so as to run last.

i assume this priority is a threshhold number relative to other rules'
priorities.

but, what ARE the other rules' priorities?

is there documentation of that? nothing on the wiki that i've found.

Re: what are default rule priorities?

Posted by snowcrash+spamassassin <sc...@gmail.com>.
> Priorities have existed for a while.  3.2 will have short circuit
> capabilities, which is recommended to be combined with changing
> priorities.

ok.

thanks.

Re: what are default rule priorities?

Posted by Matt Kettler <mk...@verizon.net>.
Theo Van Dinter wrote:
> On Mon, Nov 13, 2006 at 09:57:15PM -0500, Matt Kettler wrote:
>   
>> Priorities don't exist in released versions SA, only the 3.2 development
>> branch.
>>     
>
> Priorities have existed for a while.  3.2 will have short circuit
> capabilities, which is recommended to be combined with changing
> priorities.
>
>   
Ack, you're right. I was getting the priority code mixed up with the
short ckt code...


Re: what are default rule priorities?

Posted by Theo Van Dinter <fe...@apache.org>.
On Mon, Nov 13, 2006 at 09:57:15PM -0500, Matt Kettler wrote:
> Priorities don't exist in released versions SA, only the 3.2 development
> branch.

Priorities have existed for a while.  3.2 will have short circuit
capabilities, which is recommended to be combined with changing
priorities.

-- 
Randomly Selected Tagline:
"Before his State of the Union speech, the president's niece was arrested
 for trying to fill a fake prescription for the anti-anxiety drug Xanax. If
 you're not familiar with Xanax, the best way to describe it is, after
 taking three or four with a wine cooler, you become a really, really
 compassionate conservative."    - Bill Maher, Politically Incorrect

Re: what are default rule priorities?

Posted by Matt Kettler <mk...@verizon.net>.
snowcrash+spamassassin wrote:
>> > but, what ARE the other rules' priorities?
>> >
>> > is there documentation of that? nothing on the wiki that i've found.
>> >
>> Priorities don't exist in released versions SA, only the 3.2 development
>> branch.
>
> as i understand it, fuzzyocr -- which runs with v3.1.x ("SpamAssassin
> 3.1.4 or higher")-- specifically relies on priority to ensure that it
> runs 'last'.
>
> do i understand you correctly that it, then, has no effect with
> v3.1.x? (seems to be working on my system ...)
It should have no affect on any 3.1.x release. That's a 3.2 feature,
added by bug 3109

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

>
>> As for what's in the devel branch, well, that changes regularly. If
>> you're using development snapshots, you should be comfortable reading
>> the source code, so that's where you should head.
>
> i'm not using the dev branch/head.
>
> i'm using a svn co of the 31 branch, which i understand is the 317
> release, plus bug fixes etc.
Maybe.. it could be that the branch you grabbed had the patch. I'm not
familiar with direct SVN checkouts.

A quick way to check would be to look for the
Mail::SpamAssassin::Plugin::Shortcircuit plugin. (should be
<perlibspath>/Mail/SpamAssassin/Plugin/Shortcircuit.pm)

That said, from looking at the docs for the branch that has the feature,
the default priority is 0, and lower numbers go first (ie: most negative
first.)
>
> thanks.
>


Re: what are default rule priorities?

Posted by snowcrash+spamassassin <sc...@gmail.com>.
> > but, what ARE the other rules' priorities?
> >
> > is there documentation of that? nothing on the wiki that i've found.
> >
> Priorities don't exist in released versions SA, only the 3.2 development
> branch.

as i understand it, fuzzyocr -- which runs with v3.1.x ("SpamAssassin
3.1.4 or higher")-- specifically relies on priority to ensure that it
runs 'last'.

do i understand you correctly that it, then, has no effect with
v3.1.x? (seems to be working on my system ...)

> As for what's in the devel branch, well, that changes regularly. If
> you're using development snapshots, you should be comfortable reading
> the source code, so that's where you should head.

i'm not using the dev branch/head.

i'm using a svn co of the 31 branch, which i understand is the 317
release, plus bug fixes etc.

thanks.

Re: what are default rule priorities?

Posted by Matt Kettler <mk...@verizon.net>.
snowcrash+spamassassin wrote:
> i understand that the fuzzyocr plugin can be set to have a high (900?)
> priority, so as to run last.
>
> i assume this priority is a threshhold number relative to other rules'
> priorities.
>
> but, what ARE the other rules' priorities?
>
> is there documentation of that? nothing on the wiki that i've found.
>
Priorities don't exist in released versions SA, only the 3.2 development
branch.

As for what's in the devel branch, well, that changes regularly. If
you're using development snapshots, you should be comfortable reading
the source code, so that's where you should head.



Re: what are default rule priorities?

Posted by snowcrash+spamassassin <sc...@gmail.com>.
> check perldoc Mail::SpamAssassin::Conf --
...
> The default test priority is 0 (zero).

ok.

i suppose this means that the searchable wiki does NOT include the
docs.  i thought it did.

thanks.