PATCH - bogolexer [was: 0.16.3: config file and bogofilter_dir]
David Relson
relson at osagesoftware.com
Mon Jan 19 15:12:28 CET 2004
On Mon, 19 Jan 2004 12:19:51 +0100
Torsten Veller <ml-en at veller.net> wrote:
> Hi,
>
> my bogofilter_dir variable is not taken from my config file anymore
> (0.16.3) -- i had to change from
> | bogofilter -p -e -c/etc/bogofilter.cf
> to
> | bogofilter -p -e -c/etc/bogofilter.cf
> --bogofilter_dir=/home/bogofilter
>
> A simple call of bogolexer starts with:
> Error - bad parameter 'bogofilter_dir'
> Error - bad parameter 'unsure_subject_tag'
> Error - bad parameter 'algorithm'
> Error - bad parameter 'robs'
> Error - bad parameter 'robx'
> Error - bad parameter 'ham_cutoff'
> Error - bad parameter 'spam_cutoff'
A call to function process_config_option() had the second and third
parameters reversed. The patch below corrects the problem.
+++ configfile.c 2004-01-19 09:08:08.000000000 -0500
@@ -255,7 +255,7 @@
if (DEBUG_CONFIG(1))
fprintf(dbgout, "Testing: %s\n", buff);
- if (!process_config_option(buff, precedence, warn_on_error))
+ if (!process_config_option(buff, warn_on_error, precedence))
error = true;
}
At present, SourceForge's CVS system is down for
maintenance, so I can't update the repository.
David
More information about the bogofilter-dev
mailing list