[stephen.rueger at rechnerpost.org: Bug#171010: bogofilter: inconsistent documentation and broken default configuration in regard to ~/.bogofilter.cf]
Clint Adams
schizo at debian.org
Wed Dec 4 15:21:37 CET 2002
This patch has been applied to the Debian 0.9.1-1 packages.
----- Forwarded message from Stephen Rueger <stephen.rueger at rechnerpost.org> -----
Hello!
Inconsistency documentation: the man page mentiones ~/.bogofiltercf as
user configuration file, changelog says ~/.bogofilter.cf
Broken default configuration: The entry "user_config_file=.bogofilter"
in /etc/bogofilter.cf makes the leads to the following problem if the
current working directory is not the one with the .bogofilter.cf file:
caphuso at f311 /home $ echo foo | strace -e open bogofilter -p
[ snip ]
open("/etc/bogofilter.cf", O_RDONLY) = 5
open(".bogofilter.cf", O_RDONLY) = -1 ENOENT (No such file or
directory)
foo
X-Bogo-Spam-Status: No, tests=bogofilter, spamicity=0.016437,
version=0.9.0.1
Patch follows,
Stephen R�ger
diff -ur bogofilter-0.9.0.1/bogofilter.1 bogofilter-0.9.0.1-fix/bogofilter.1
--- bogofilter-0.9.0.1/bogofilter.1 2002-11-23 20:16:01.000000000 +0100
+++ bogofilter-0.9.0.1-fix/bogofilter.1 2002-11-28 02:43:09.000000000 +0100
@@ -301,7 +301,7 @@
System configuration file.
.TP
-\fI~/.bogofiltercf\fR
+\fI~/.bogofilter.cf\fR
User configuration file.
.TP
diff -ur bogofilter-0.9.0.1/bogofilter.cf.example bogofilter-0.9.0.1-fix/bogofilter.cf.example
--- bogofilter-0.9.0.1/bogofilter.cf.example 2002-11-23 15:05:46.000000000 +0100
+++ bogofilter-0.9.0.1-fix/bogofilter.cf.example 2002-11-28 02:42:20.000000000 +0100
@@ -75,10 +75,10 @@
#
# name/location of user config file
-user_config_file=.bogofilter.cf
+user_config_file=~/.bogofilter.cf
-#user_config_file=.bogofilterrc
-#user_config_file=.bogofilter/config
+#user_config_file=~/.bogofilterrc
+#user_config_file=~/.bogofilter/config
#### wordlist: define a word list
diff -ur bogofilter-0.9.0.1/bogofilter.xml bogofilter-0.9.0.1-fix/bogofilter.xml
--- bogofilter-0.9.0.1/bogofilter.xml 2002-11-22 01:39:09.000000000 +0100
+++ bogofilter-0.9.0.1-fix/bogofilter.xml 2002-11-28 02:42:57.000000000 +0100
@@ -386,7 +386,7 @@
<listitem><para>System configuration file.</para></listitem>
</varlistentry>
<varlistentry>
-<term><filename>~/.bogofiltercf</filename></term>
+<term><filename>~/.bogofilter.cf</filename></term>
<listitem><para>User configuration file.</para></listitem>
</varlistentry>
<varlistentry>
--
Jede Nation spottet �ber die andere, und alle haben recht.
-- Schopenhauer
----- End forwarded message -----
More information about the bogofilter-dev
mailing list