how to train with maildir?

Chris Wilkes cwilkes-bf at ladro.com
Thu Jul 22 10:43:55 EDT 2004


On Thu, Jul 22, 2004 at 09:55:19AM -0400, Bob Vincent wrote:
> 
> Anyhow, even if the "-B" option will work for registration, you don't
> want to do it that way because it will fail once you have too many
> messages.
> 
> IF the "-b" option works for registration (I'd have to re-read the
> code to be sure), the best way would be:
> 
> 	find $HOME/spam -type f | bogofilter -s -b
> 
> But last time I tried that, it didn't work.  (Trying again...)
> 
> Mmmm... appears to work now.

If that doesn't work you could modify the above like so:
  bogofilter -s -B $(find $HOME/spam -type f)
  bogofilter -s -B `find $HOME/spam -type f`
where the 2nd one has backticks in there.  Keep in mind that if you have
a boat load of spam (like over 2000 messages) then your shell might
complain about it due to a limit on how many arguments you can pass
along.

Chris


More information about the Bogofilter mailing list