Re: can't train bogofilter
RW <[email protected]> Sun, 10 Jun 2012 12:44:00 +0100
| Newsgroups | gmane.mail.bogofilter.general |
|---|---|
| Message-ID | <[email protected]> |
On Sun, 10 Jun 2012 12:40:55 +0200 renato wrote: > Hello, I have a mailbox folder with spam mails that bogofilter has > incorrectly filed as "Unsure" or "Ham", and I'd like to train it. So > in the directory I gave this command: > > for i in $(ls); do bogofilter -Ns < $i; done > > which takes a while, but after that all messages still have an > unmodified X-Bogosity header (i.e. it still reads "Unsure" or "Ham") - > is this the supposed behaviour? Yes, the header is added on classification for filtering and informational purposes > If I also give the -p option, the > message is written to stdout with a correct X-Bogosity header (i.e. > spam), but my bash-fu is weak and I can't figure out how to correctly > redirect this output to overwrite the original file - and most > importantly > I don't know if that's really what I want to/should do. Nothing unless you have a good reason to want the header updated. > Also, after that command the file ~/.bogofilter/wordlist.db hasn't > increased in size. It don't think it expands one record at a time, but since you are retraining, the number of tokens doesn't change anyway. _______________________________________________ Bogofilter mailing list [email protected] http://www.bogofilter.org/mailman/listinfo/bogofilter