[cvs] bogofilter config.c,1.10,1.11
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: <re...@us...> - 2002-11-06 23:05:53
|
Update of /cvsroot/bogofilter/bogofilter In directory usw-pr-cvs1:/tmp/cvs-serv22774 Modified Files: config.c Log Message: Two config file fixes: Correct setting of stats_prefix from stats_in_header. Correct defect in setting boolean config parameters. Index: config.c =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/config.c,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** config.c 6 Nov 2002 03:32:38 -0000 1.10 --- config.c 6 Nov 2002 23:05:48 -0000 1.11 *************** *** 116,120 **** case CP_BOOLEAN: { ! char ch=tolower(*val); switch (ch) { --- 116,120 ---- case CP_BOOLEAN: { ! char ch=toupper(*val); switch (ch) { *************** *** 270,273 **** --- 270,277 ---- xfree(tmp); + stats_prefix= stats_in_header ? "\t" : "# "; + if (DEBUG_CONFIG(0)) + fprintf( stderr, "stats_prefix: '%s'\n", stats_prefix ); + if (error) exit(2); *************** *** 408,413 **** exitcode = validate_args(argc, argv); - - stats_prefix= stats_in_header ? "\t" : "# "; return exitcode; --- 412,415 ---- |