Just so, you're missing the "--mbox" option. sa-learn defaults to maildir format (one message per file), whereas you've got mbox format (lots of messages all in one big file, like /var/mail/you).
Give it a whirl, everything else looks fine. BTW, you'll need at least 200 spams *and* 200 hams before SA will use your Bayesian database, so make sure you feed it some ham as well.
----- Original Message -----
From: jm at jmason.org (Justin Mason)
Date: Sunday, May 9, 2004 1:46 am
Subject: Re: [ILUG] Problem's with SpamAssassin's sa-learn
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>>> Conall O'Brien writes:
> > On Sun, May 09, 2004 at 01:14:13AM IST, Justin Mason
> > <jm at jmason.org> incoherently babbled:
> > > Conall O'Brien writes:
> > > >debug: 818976341.83991 at firstname.lastname@example.org: already learnt
> > > >correctly, not learning twice
> > > >Learned from 0 message(s) (1 message(s) examined).
> > >
> > > there's the problem -- it's already been learned correctly, and
> > > sa-learn doesn't want to learn it twice. ;)
> > But the mailbox isn't being read properly. I'm manually filering all
> > the spam I get into that mailbox, hence why it's got more than 2000
> > messages, some which SpamAssassin recognises, and a lot of spam it
> > didn't catch because I can't train it yet...
>> SpamAssassin is only seeing one message. Sounds like it's not
> expecting whatever the file format is. I'd suggest making sure
> the command-line switches are right...
>> - --j.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (GNU/Linux)
> Comment: Exmh CVS
> -----END PGP SIGNATURE-----
> Irish Linux Users' Group
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!