Byteplant Forum

Home » CleanMail Support » CleanMail SpamAssassin Filter » Testing new rulesets with --lint
Testing new rulesets with --lint [message #668] Tue, 22 June 2004 10:55
Greyhound
Messages: 6
Registered: June 2004
Junior Member
I have written some new company specific rules for spamassissan (No Spam Today!). Before putting them into an productive environment I wanted to test them. To do so I used the –lint option.


C:\XXX\sa>C:\XXX\sa\spamassassin -d --configpath=C:\XXX\sa --prefspath
C:\XXX\sa\ruleset\local.cf --siteconfigpath=C:\XXX\sa\ruleset\ --lint


That worked fine and I could find some syntax errors, except the fact that I get two error messages that I can not explain nor correct:


Use of uninitialized value in concatenation (.) or string at /PerlApp/File/Spec
Win32.pm line 240.
Use of uninitialized value in open at /PerlApp/Mail/SpamAssassin/TextCat.pm lin
63.
cannot open languages: No such file or directory


As it is an NT Installation there is no path like “/PerlApp/Mail/SpamAssassin”

Some body a clou where the error comes from and a hint what to do ?
Re: Testing new rulesets with --lint [message #669 is a reply to message #668] Tue, 22 June 2004 11:59 Go to previous message
support
Messages: 919
Registered: April 2004
Senior Member
Does 'XXX' contain blanks? If so, use paths relative to c:\XXX in your commands only, like this:

C:\XXX>sa\spamassassin -d -c sa\ruleset --lint



Customer Support
Byteplant GmbH
Re: Testing new rulesets with --lint [message #670 is a reply to message #669] Tue, 22 June 2004 16:08 Go to previous message
Greyhound
Messages: 6
Registered: June 2004
Junior Member
Thanks for your quick answer.

There are no blanks in the XXX...
Well in a certain way that helped Smile . Using your your command “C:\testsa>sa\spamassassin -d -c sa\ruleset –lint” I found an other mistake in my rules. But still I have the same problem.


C:\testsa>sa\spamassassin -d --configpath=\sa --prefspath=sa\ruleset\local.cf --
siteconfigpath=sa\ruleset\ --lint
Use of uninitialized value in open at /PerlApp/Mail/SpamAssassin/TextCat.pm line
63.
cannot open languages: No such file or directory


Or using your command:


C:\testsa>sa\spamassassin -d -c sa\ruleset --lint
Cannot open /usr/share/spamassassin/user_prefs.template: No such file or directo
ry
Failed to create default user preference file C:\Dokumente und Einstellungen\abc
/.spamassassin/user_prefs

Re: Testing new rulesets with --lint [message #671 is a reply to message #668] Wed, 23 June 2004 10:49 Go to previous message
BradlayLaw
Messages: 9
Registered: June 2004
Junior Member
I get the above when trying to use --lint as well (sa\spamassassin -d -c sa\ruleset --lint).

How can I make --lint work?
Re: Testing new rulesets with --lint [message #672 is a reply to message #670] Wed, 23 June 2004 10:53 Go to previous message
support
Messages: 919
Registered: April 2004
Senior Member
> C:\testsa>sa\spamassassin -d --configpath=\sa
> --prefspath=sa\ruleset\local.cf --
> siteconfigpath=sa\ruleset\ --lint
> Use of uninitialized value in open at
> /PerlApp/Mail/SpamAssassin/TextCat.pm line
> 63.
> cannot open languages: No such file or directory

Are you sure about the config path? My guess is there are no rule files in this directory, and the SpamAssassin error message is a consequence of this.

> Or using your command:
>
> C:\testsa>sa\spamassassin -d -c sa\ruleset --lint
> Cannot open /usr/share/spamassassin/user_prefs.template: No
> such file or directo
> ry
> Failed to create default user preference file C:\Dokumente
> und Einstellungen\abc
> /.spamassassin/user_prefs

Not to worry, this is just a warning. Spamassassin always tries to create a user_prefs file if it is not present, but you do not need it anyway. Adding a -x or -p option should suppress this. See the SpamAssassin site for a documentation of command line switches:

http://www.spamassassin.org/doc/spamassassin.html



Customer Support
Byteplant GmbH
Re: Testing new rulesets with --lint [message #673 is a reply to message #671] Wed, 23 June 2004 10:56 Go to previous message
support
Messages: 919
Registered: April 2004
Senior Member
Found it! It's in our FAQ list:

http://www.byteplant.com/support/nospamtoday/server/faq.html#490



Customer Support
Byteplant GmbH
Re: Testing new rulesets with --lint [message #674 is a reply to message #668] Thu, 24 June 2004 10:56 Go to previous message
Greyhound
Messages: 6
Registered: June 2004
Junior Member
Why make it easy if there is a more complicated way? Smile

That works just fine.

Thanks a lot.

(I promise next time I will read the FAQ first.)
Previous Topic: Display score of spam
Next Topic: Trying to stop the German Racist Spam
Goto Forum:
  


Current Time: Tue Dec 06 01:50:45 CET 2016