Re: How to remove words from the wordlist.db?

David Relson <[email protected]>
Newsgroups gmane.mail.bogofilter.general
Organization Osage Software Systems, Inc.
Message-ID <[email protected]>
On Mon, 26 Nov 2007 16:53:25 +0000 (UTC)
Stefan wrote:

> Hi,
> 
> I have a wrong trained (-u) database and some words really wrong:
> ph*nt*rmine                       117     656  0.033104
> 
> The "*" are to be replaced by an "e".
> 
> How do I remove such a word from the wordlist database, or how do I
> change its values?
> 
> Thank you in advance
> Stefan

Hello Stefan,

If you've got errors caused by -u, the correct thing to do is
unregister, then register, the messages that were incorrectly
processed.  For example a false positive, i.e. ham registered as spam,
would be processed with:

    bogofilter -Sn < message

which will unregister the message as spam (the "-S") then register it
as ham (the "-n").

Alternatively using grep with bogoutil's dump and load capabilities one
_can_ remove words.  For example to remove phentermine you could run:

   bogoutil -d wordlist.db | \
   grep -v ^phentermine | \
   bogoutil -l wordlist.new.db

Hope this helps :->

David
_______________________________________________
Bogofilter mailing list
[email protected]
http://www.bogofilter.org/mailman/listinfo/bogofilter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.