Bogofilter training on KMail mailboxes?

Todd Slater dontodd at gmail.com
Mon Jan 16 16:56:50 UTC 2006


On 1/16/06, Derek Broughton <news at pointerstop.ca> wrote:
> Todd Slater wrote:
>
> > On 1/15/06, Rob Blomquist <rob at robandmegan.net> wrote:
> >> I am attempting to use bogofilter after a couple of years of running
> >> SpamAssassin.
> >>
> >> Under SA, it was easy to teach it about spam: every night I ran a cron
> >> job on my spamfolder, which has "maildir" style directories.
> >>
> >> according to what I have read on the bogofilter page, all I need to do is
> >> run "bogofilter -s ~/.Mail/SpamPile/cur/, and the filtering will be done.
> >>
> >> Last night, while in ~/.Mail/SpamPile/cur/ I tried to run bogofilter -s,
> >> and it hung all night.
> >>
> >> Today I tried while in ~ to run "bogofilter -s .Mail/SpamPile/cur/" and I
> >> got "Extra arguments given, first: .Mail/SpamPile/cur/. Aborting."
> >>
> >> It appears to want a command format I don't understand. Thoughts?
> >
> > It looks like you're using maildir format; you have to pass files to
> > bogofilter, like an mbox (all mails in one big file) or the individual
> > files in an mh or maildir. So, you need to train using
> >
> > for i in *
> > do
> > bogofilter -s < "$i"
> > done
>
> Huh?  bogofilter really _does_ understand maildirs.  Just man bogofilter and
> search for maildir.  The -B option is what you're looking for.

cool, new one on me; been using bogofilter for a couple of years and
never noticed that switch.

Todd




More information about the ubuntu-users mailing list