Re: lint errors
On Mon, 2007-01-22 at 17:31 -0500, Robert Fitzpatrick wrote: I get the following lint errors: esmtp# spamassassin --lint Subroutine FuzzyOcr::O_NONBLOCK redefined at /usr/local/lib/perl5/5.8.6/Exporter.pm line 65. at /usr/local/lib/perl5/5.8.6/mach/POSIX.pm line 19 [98248] warn: FuzzyOcr: Cannot find executable for pamthreshold [98248] warn: FuzzyOcr: Cannot find executable for tesseract Never mind about the last two, I am running FreeBSD and found... http://fuzzyocr.own-hero.net/ticket/40 -- Robert
Re: lint errors
Robert Fitzpatrick wrote: I get the following lint errors: esmtp# spamassassin --lint Subroutine FuzzyOcr::O_NONBLOCK redefined at /usr/local/lib/perl5/5.8.6/Exporter.pm line 65. at /usr/local/lib/perl5/5.8.6/mach/POSIX.pm line 19 [98248] warn: FuzzyOcr: Cannot find executable for pamthreshold [98248] warn: FuzzyOcr: Cannot find executable for tesseract I found this regarding the first one, sounds like it can be ignored? Not sure about the other two. http://www.nabble.com/lint-error-on-FuzzyOcr-3.5.0-rc1-t2906332.html The other two are warnings from FuzzyOcr that it could not find the executables for those programs. You could ignore them and you should still be fine, as long as you still have a scanner available (ocrad|gocr). Jorge.
Re: lint errors after upgrade
Jean-Paul Natola wrote: Hi all After upgrading to 3.1.1 I'm getting a bunch of [36993] warn: config: SpamAssassin failed to parse line, SARE_RMML_Stock27_.166 is not valid for score, skipping: score_SARE_RMML_Stock27_.166 Is there something , or should I say, what step did I miss? Looks like you're using sare_stocks.cf, and you have a corrupted version It should be: score SARE_RMML_Stock27 .166 Not: score_SARE_RMML_Stock27_.166 Get a fresh copy and replace yours: http://www.rulesemporium.com/rules/70_sare_stocks.cf (And DO NOT copy-paste it, download it directly to your SA box with wget or curl if you can)
Re: lint errors after upgrade
On Wed, Mar 22, 2006 at 02:56:22PM -0500, Matt Kettler wrote: score SARE_RMML_Stock27 .166 actually it should be score SARE_RMML_Stock27 0.166. not having a leading 0 is invalid. -- Randomly Generated Tagline: Is there a space between the wall and paint? - Bob Lazarus pgp2A4wCXStMA.pgp Description: PGP signature
Re: lint errors after upgrade
Jean-Paul Natola wrote: Hi all After upgrading to 3.1.1 I'm getting a bunch of [36993] warn: config: SpamAssassin failed to parse line, SARE_RMML_Stock27_.166 is not valid for score, skipping: score_SARE_RMML_Stock27_.166 Is there something , or should I say, what step did I miss? Upgrade 70_sare_stocks.cf The leading 0 issue was taken care of in version 01.00.07 and it is currently on 01.00.16 -- -Doc SA/SARE -- Ninja 3:20pm up 60 days, 12:40, 17 users, load average: 0.79, 0.56, 0.44 SARE HQ http://www.rulesemporium.com/
Re: Lint errors -need help
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
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
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
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
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
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