config file error message
David Relson
relson at osagesoftware.com
Sat Mar 1 20:02:50 CET 2003
Matthias,
I've modified the error reporting in config file handling.
Consider the following, simple config file:
$ cat test.cf
ham_cutoff=0.22 # comment
spam_cutoff'...'0.66x'
Here's the output of running the current code:
[relson at osage src]$ ~/cvs/src/bogofilter -c test.cf < /dev/null
cannot parse double value '0.22 # comment'
cannot parse double value '0.66x'
And the output of the new code:
[relson at osage src]$ ~/cvs/src/bogofilter -c test.cf < /dev/null
test.cf:2: Error - bad parameter in 'spam_cutoff...0.66x'
FWIW, if bogofilter finds an error, it will always print a message.
David
More information about the bogofilter-dev
mailing list