merging databases & multiple wordlists
Matthias Andree
matthias.andree at gmx.de
Wed Jan 26 01:42:43 CET 2005
David Relson <relson at osagesoftware.com> writes:
> that are already in the wordlist. So, merging two wordlists can be done
> with:
>
> bogoutil -d first.db > first.txt
> bogoutil -d second.db > second.txt
> cat first.txt second.txt | bogotuil -l new.db
99.999% - funniest bug so far in bogofilter (workaround at the very end):
This works so especially well that it adds up the date in
.WORDLIST_VERSION contents. :-)
$ tail /tmp/*.txt
==> /tmp/first.txt <==
.MSG_COUNT 0 1 20050126
.WORDLIST_VERSION 20040500 0 20050126
head:test1 0 1 20050126
==> /tmp/second.txt <==
.MSG_COUNT 1 0 20050126
.WORDLIST_VERSION 20040500 0 20050126
head:test2 1 0 20050126
$ cat /tmp/*.txt | bogoutil -l /tmp/new.db
$ bogoutil -d /tmp/new.db
.MSG_COUNT 1 1 20050126
.WORDLIST_VERSION 40081000 0 20050126
head:test1 0 1 20050126
head:test2 1 0 20050126
The workaround is:
cat first.txt second.txt | grep -v '^\.WORDLIST_VERSION' | bogoutil -l new.db
I'll mail David off-list.
--
Matthias Andree
More information about the Bogofilter
mailing list