Aaron Grewell wrote:
>> Using include completely redundant at the local.cf level, as SA
>> automatically parses /etc/mail/spamassassin/*.cf. Rather than use
>> custom_scores.txt, just use custom_scores.cf and put it alongside local.cf.
> 
> That's what I tried first, and got the same errors.  So I thought that maybe 
> I 
> was supposed to include scoring overrides in local.cf.  If that's not the 
> case, then something else odd is going on.  The BAYES line it's erroring 
> about is the first line in the now suitably renamed custom_scores.cf file.  
> Here's what the debug output looks like:
> 
> spamassassin -D --lint

> config: SpamAssassin failed to parse line, skipping: score BAYES_60     6.5

Sounds like you've got something other than spaces/tabs on that line (ie:
unprintable escape codes), or the file was created on a windows machine with
windows end-of-line format but is being read by a *nix machine.

Another possibility is the line above it ends in a \ or has some control-code
garbage in it.

In general the line should be perfectly valid, so there must be something else
going on. Although I will comment that 6.5 is a rather insane choice of score
for BAYES_60, it should not create a parse error.

Reply via email to