Re: Lint errors -need help

2005-05-18 Thread jimsheffer
Thanks to everyone who helped!
I've got everything working and have successfully added a few extra rules.
Lint returns no errors! (I had to some fixing on the bayes db's but they are
now being read correctly!

Jim Sheffer,

OmniPilot Softwarehttp://www.omnipilot.com
Systems Administrator [EMAIL PROTECTED]


On 5/17/05 11:38 AM, jimsheffer [EMAIL PROTECTED] wrote:

 Hi everyone.
 
 I've just set up a new mail server running the latest version of
 spamassassin.
 
 I'm getting ready to add some extra rules, and RDJ.
 I ran lint -D on the basic config file I have for sa to see what I get
 before adding a bunch of rule files, and got the following errors: (I
 believe these are 2 of the 3- the other was razor I think- snipped out all
 the other stuff for briefness, but have it all if needed :)
 
 Can someone help me out to decifer what they meanand what I need to do
 before proceeding with other rules?
 
 Thanks!
 
 config: SpamAssassin failed to parse line, skipping: rewrite_subject 0
 config: SpamAssassin failed to parse line, skipping: always_add_headers 1
 config: SpamAssassin failed to parse line, skipping: auto_learn
 1
 debug: using /Users/admin/.spamassassin for user state dir
 debug: bayes: no dbs present, cannot tie DB R/O:
 /Users/admin/.spamassassin/bayes_toks
 debug: Score set 1 chosen.
 
 
 debug: bayes: no dbs present, cannot tie DB R/O:
 /Users/admin/.spamassassin/bayes_toks
 
 
 lint: 3 issues detected.  please rerun with debug enabled for more
 information.
 
 Jim Sheffer,
 
 OmniPilot Softwarehttp://www.omnipilot.com
 Systems Administrator [EMAIL PROTECTED]
 
 
 




Re: Lint errors -need help

2005-05-17 Thread Fred
jimsheffer wrote:
 config: SpamAssassin failed to parse line, skipping: rewrite_subject 0
 config: SpamAssassin failed to parse line, skipping:
 always_add_headers 1 config: SpamAssassin failed to parse line,
 skipping: auto_learn 1


Those 3 config options are no longer supported.
In the readme or install file, there is probably a reference to this.
Remove those 3 options and lint again, everything should clear up.



Re: Lint errors -need help

2005-05-17 Thread Jim Maul
jimsheffer wrote:
Hi everyone.
I've just set up a new mail server running the latest version of
spamassassin.
I'm getting ready to add some extra rules, and RDJ.
I ran lint -D on the basic config file I have for sa to see what I get
before adding a bunch of rule files, and got the following errors: (I
believe these are 2 of the 3- the other was razor I think- snipped out all
the other stuff for briefness, but have it all if needed :)
Can someone help me out to decifer what they meanand what I need to do
before proceeding with other rules?
Thanks!
config: SpamAssassin failed to parse line, skipping: rewrite_subject 0
config: SpamAssassin failed to parse line, skipping: always_add_headers 1
No longer valid in 3.x
config: SpamAssassin failed to parse line, skipping: auto_learn
This wasnt valid in any version of SA that i know of.  I think it was 
supposed to be bayes_auto_learn but again, that isnt valid in 3.x  You 
probably used the web based local.cf creation tool mentioned on the SA 
website, but it generates files with incorrect syntax last i checked.

1
debug: using /Users/admin/.spamassassin for user state dir
debug: bayes: no dbs present, cannot tie DB R/O:
/Users/admin/.spamassassin/bayes_toks
debug: Score set 1 chosen.
debug: bayes: no dbs present, cannot tie DB R/O:
/Users/admin/.spamassassin/bayes_toks
is there really a bayes db in this directory?  Is it accessible by the 
user that SA is running as?


lint: 3 issues detected.  please rerun with debug enabled for more
information.
Jim Sheffer,
OmniPilot Softwarehttp://www.omnipilot.com
Systems Administrator [EMAIL PROTECTED]

-Jim


Re: Lint errors -need help

2005-05-17 Thread Matt Kettler
jimsheffer wrote:
 Hi everyone.
 
 I've just set up a new mail server running the latest version of
 spamassassin.
 
 I'm getting ready to add some extra rules, and RDJ.
 I ran lint -D on the basic config file I have for sa to see what I get
 before adding a bunch of rule files, and got the following errors: (I
 believe these are 2 of the 3- the other was razor I think- snipped out all
 the other stuff for briefness, but have it all if needed :)
 
 Can someone help me out to decifer what they meanand what I need to do
 before proceeding with other rules?
 
 Thanks!
 
 config: SpamAssassin failed to parse line, skipping: rewrite_subject 0
 config: SpamAssassin failed to parse line, skipping: always_add_headers 1
 config: SpamAssassin failed to parse line, skipping: auto_learn


auto_learn was changed to bayes_auto_learn in SA 2.60.

always_add_headers is redundant with the report templates, and has been dead for
a long time. Just delete it.

rewrite_subject has been replaced with rewrite_header as of SA 3.0. To get the
same effect as rewrite_subject 0 use:

rewrite_header subject


Which specifies no modification of the subject line (otherwise a tag string
would follow).


Re: Lint errors -need help

2005-05-17 Thread James R
jimsheffer wrote:
 Hi everyone.

 I've just set up a new mail server running the latest version of
 spamassassin.

 I'm getting ready to add some extra rules, and RDJ.
 I ran lint -D on the basic config file I have for sa to see what I get
 before adding a bunch of rule files, and got the following errors: (I
 believe these are 2 of the 3- the other was razor I think- snipped 
out all
 the other stuff for briefness, but have it all if needed :)

 Can someone help me out to decifer what they meanand what I need to do
 before proceeding with other rules?

 Thanks!

 config: SpamAssassin failed to parse line, skipping: rewrite_subject 0
 config: SpamAssassin failed to parse line, skipping: always_add_headers 1
 config: SpamAssassin failed to parse line, skipping: auto_learn
 1
 debug: using /Users/admin/.spamassassin for user state dir
 debug: bayes: no dbs present, cannot tie DB R/O:
 /Users/admin/.spamassassin/bayes_toks
 debug: Score set 1 chosen.


 debug: bayes: no dbs present, cannot tie DB R/O:
 /Users/admin/.spamassassin/bayes_toks


 lint: 3 issues detected.  please rerun with debug enabled for more
 information.

 Jim Sheffer,

 OmniPilot Softwarehttp://www.omnipilot.com
 Systems Administrator [EMAIL PROTECTED]






These issues:
quote
config: SpamAssassin failed to parse line, skipping: rewrite_subject 0
config: SpamAssassin failed to parse line, skipping: always_add_headers 1
config: SpamAssassin failed to parse line, skipping: auto_learn
/quote
are because those options are depreciated.
use instead:
rewrite_subject is now rewrite_header Subject string
always_add_headers is replaced with the add_header command (see the man 
pages for that)

auto_learn is now bayes_auto_learn
HTH
--
Thanks,
James


RE: Lint errors -need help

2005-05-17 Thread Bret Miller
 config: SpamAssassin failed to parse line, skipping: rewrite_subject 0

Deprecated. Just remove the line since you don't want to rewrite
anything.

 config: SpamAssassin failed to parse line, skipping:
 always_add_headers 1

Deprecated. Now you should manually define which headers to add, and if
you want the headers to always be the same, you could use something like
this: (note that report_safe 0 resets the headers to default, so do it
first)

fold_headers1
clear_headers
add_header all Level _STARS(+)_
add_header all Score _HITS_
add_header all Tests tests=_TESTSSCORES_;autolearn=_AUTOLEARN_

 config: SpamAssassin failed to parse line, skipping: auto_learn
 1

Deprecated. Use:

bayes_auto_learn 1