-u not working for me in 0.15.4 [Was: New header token tagging]

Greg McCann greg at cambria.com
Thu Sep 25 22:03:17 CEST 2003


On 9/25/2003 at 2:00 PM David Relson <relson at osagesoftware.com> wrote:

>"-u" means to score the message and then register it if it's ham or
>spam.  Is it possible that you've got two wordlist.db files in different
>places?
>
>I just tested "-u" and  it updates as it should.

David,

I am specifying the same wordlist directory (using the "-d" option) in both my "-s" and "-u" commands.  The exact same "-u" command works in 0.13.6.2, but not 0.15.4.

I did a check for stray .db files.  All I found was an old spamlist.db and goodlist.db in my ~/.bogofilter directory that haven't been updated since June, so I don't think that is the problem.

Here is a quick test:

With version 0.13.6.2...

# cd /home/bogofilter
# ls *.db
-rw-rw-rw-    1 mailnull mailnull  4857856 Sep 25 19:36 goodlist.db
-rw-rw-rw-    1 mailnull mailnull 10297344 Sep 25 19:28 spamlist.db

# bogofilter -u -d/home/bogofilter < badspam.txt
# ls *.db
-rw-rw-rw-    1 mailnull mailnull  4857856 Sep 25 19:36 goodlist.db
-rw-rw-rw-    1 mailnull mailnull 10297344 Sep 25 19:37 spamlist.db

Note that spamlist.db has been updated - goodlist.db stays the same.

Now with version 0.15.4...

# cd /home/bogofilter
# ls *.db
-rw-rw-rw-    1 mailnull mailnull  4857856 Sep 25 19:36 goodlist.db
-rw-rw-rw-    1 mailnull mailnull 10297344 Sep 25 19:37 spamlist.db

# bogofilter -u -d/home/bogofilter < badspam.txt
# ls *.db
-rw-rw-rw-    1 mailnull mailnull  4857856 Sep 25 19:36 goodlist.db
-rw-rw-rw-    1 mailnull mailnull 10297344 Sep 25 19:37 spamlist.db

Nothing changes.  (I know the directory listing alone doesn't necessarily prove this.  This is just a "quick and dirty".  But trust me - the db files aren't changing with -u and 0.15.4.)

I am still using the old spamlist.db and goodlist.db instead of the single unified wordlist.db.  Could that be the problem?

I am also using the original /etc/bogofilter.cf file that I set up for 0.13.6.2:

# grep -v "^#\|^$" /etc/bogofilter.cf  [show non-comment, non-empty lines]
bogofilter_dir=/home/bogofilter
block_on_subnets=yes
replace_nonascii_characters=yes


Thanks,


Greg McCann






More information about the Bogofilter mailing list