You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Jason Bertoch <ja...@electronet.net> on 2007/09/14 21:54:28 UTC

Compiling Rules

sa-compile appears to examine rules downloaded via sa-update, including custom
channels like dostech.  However, it does not appear to pick up custom rules, or
anything else, from files in /etc/mail/spamassassin.  Is this a bug or a
feature?


Jason A. Bertoch
Network Administrator
jason@electronet.net
ElectroNet Intermedia Consulting
3411 Capital Medical Blvd.
Tallahassee, FL 32308
(V) 850.222.0229 (F) 850.222.8771


Re: Compiling Rules

Posted by Jared Hall <jh...@tbi.net>.
Me thinks it does body rules only.
I'm at 3.2.3 and it (sa-compile) definitely picks up my rules.

FWIW,

Jared Hall
General Telecom, LLC.

On Friday 14 September 2007 15:54, Jason Bertoch wrote:
> sa-compile appears to examine rules downloaded via sa-update, including
> custom channels like dostech.  However, it does not appear to pick up
> custom rules, or anything else, from files in /etc/mail/spamassassin.  Is
> this a bug or a feature?
>
>
> Jason A. Bertoch
> Network Administrator
> jason@electronet.net
> ElectroNet Intermedia Consulting
> 3411 Capital Medical Blvd.
> Tallahassee, FL 32308
> (V) 850.222.0229 (F) 850.222.8771

Re: Compiling Rules

Posted by "Mr. Gus" <mr...@disco-zombie.net>.
On Fri, Sep 14, 2007 at 03:54:28PM -0400, Jason Bertoch wrote:
> 
> sa-compile appears to examine rules downloaded via sa-update, including custom
> channels like dostech.  However, it does not appear to pick up custom rules, or
> anything else, from files in /etc/mail/spamassassin.  Is this a bug or a
> feature?

I know for a fact that it picks up my custom rules, as sa-compile couldn't
parse a couple of them correctly. :)

Try running this:

sa-compile -D --list 2>&1 | grep "rules dir"

You should see:

[17010] dbg: config: using "/var/lib/spamassassin/3.002003" for default
rules dir
[17010] dbg: config: using "/etc/mail/spamassassin" for site rules dir


You can also pick a custom body rule that you made and grep that:

sa-compile -D --list 2>&1 | grep TEST

And get results like:

orig TEST_0001 /test000001010101/i
r test000001010101:TEST_0001

-- 
Gus

Re: Compiling Rules

Posted by "Mr. Gus" <mr...@disco-zombie.net>.
Sorry for the dupes. Had a wrong setting in mutt and thought these two 
didn't get sent properly. :-/ (my solution to this problem being to send a
third message... Hmmm...)

-- 
Gus


Re: Compiling Rules

Posted by "Mr. Gus" <mr...@disco-zombie.net>.
On Fri, Sep 14, 2007 at 03:54:28PM -0400, Jason Bertoch wrote:
> 
> sa-compile appears to examine rules downloaded via sa-update, including custom
> channels like dostech.  However, it does not appear to pick up custom rules, or
> anything else, from files in /etc/mail/spamassassin.  Is this a bug or a
> feature?

I know for a fact that it picks up my custom rules, as sa-compile couldn't
parse a couple of them correctly. :)

Try running this:

sa-compile -D --list 2>&1 | grep "rules dir"

You should see:

[17010] dbg: config: using "/var/lib/spamassassin/3.002003" for default
rules dir
[17010] dbg: config: using "/etc/mail/spamassassin" for site rules dir


You can also pick a custom body rule that you made and grep that:

sa-compile -D --list 2>&1 | grep TEST

And get results like:

orig TEST_0001 /test000001010101/i
r test000001010101:TEST_0001

-- 
Gus