problem with longoptions
David Relson
relson at osagesoftware.com
Wed Mar 16 05:43:48 CET 2005
Matthias,
Up through 0.94.0, config file options were ignored if they didn't
apply to the program reading the config file. Now there are complaints
and processing halts. With the current code, the sharing of config
files is badly broken.
Below a sample config file and a message are processed by bogolexer and
bogofilter (versions 0.94.0 and cvs). 0.94.0 ignores what it doesn't
like, which is appropriate, while cvs complains.
This needs to be fixed for the build.
David
######## Test Script #######
#!/bin/sh
cat >0315.cf <<EOF
block_on_subnets = No
charset_default = us-ascii
replace_nonascii_characters = No
no-header-tags = Yes
stats_in_header = Yes
report-unsure = No
thresh_update = 0.000000
timestamp = Yes
timestamp-date = 20040822
EOF
cat >msg.test.sh <<EOF
From test
Subject: subject
this is a test
EOF
for V in 0940 cvs ; do
echo "#### bogolexer-$V ####"
bogolexer-$V -c 0315.cf -p -I msg.test.sh
echo
done
for V in 0940 cvs ; do
echo "#### bogofilter-$V ####"
bogofilter-$V -d . -c 0315.cf -v -n -I msg.test.sh
echo
done
######## and it's output #######
[relson at osage src]$ 0315.sh
#### bogolexer-0940 ####
From
test
subject
this
test
#### bogolexer-cvs ####
head:From
head:test
subj:subject
this
test
#### bogofilter-0940 ####
# 5 words, 1 message
#### bogofilter-cvs ####
Error - bad parameter 'timestamp-date = 20040822'
Cannot open 0315.cf: Success
--
David Relson Osage Software Systems, Inc.
relson at osagesoftware.com Ann Arbor, MI 48103
www.osagesoftware.com tel: 734.821.8800
_______________________________________________
Bogofilter-dev mailing list
Bogofilter-dev at bogofilter.org
http://www.bogofilter.org/mailman/listinfo/bogofilter-dev
More information about the bogofilter-dev
mailing list