[EMAIL PROTECTED] wrote:
> Subject: [SAtalk] sa-learn running as cron job
>
>
> Hi Everyone
>
> RH Linux 8.0
> SpamAssassin 2.55
> Procmail 3.22-7
>
> I have two mailboxes set-up, one called ham and spam, and any
> messages wrongly identified by SpamAssassin are transferred
> (with complete hea
> > /usr/bin/sa-learn --spam --mbox /var/spool/mail/spam
> > echo > /var/spool/mail/spam
> > /usr/bin/sa-learn --ham --mbox /var/spool/mail/ham
> > echo > /var/spool/mail/ham
> >
> > That doesn't completely empty the file, it makes it 1 byte
> If I just go
> > ahead and delete the file totall
At Sun Aug 10 12:49:31 2003, Gerry Doris wrote:
>
> I don't understand why you need to run this against the normal non-spam
> mail. Shouldn't all the ham have already passed through spamassassin and
> be "learned".
No. When it comes to auto-learning, there are three classifications
for mess
> > > /usr/bin/sa-learn --spam --mbox /var/spool/mail/spam
> > > echo > /var/spool/mail/spam
> > > /usr/bin/sa-learn --ham --mbox /var/spool/mail/ham
> > > echo > /var/spool/mail/ham
> > >
> I don't understand why you need to run this against the normal non-spam
> mail. Shouldn't all the ham have
On Sun, 10 Aug 2003, Martin Radford wrote:
> At Sun Aug 10 10:45:08 2003, Gareth wrote:
>
> > I'm using mbox, so I guess that wouldn't work for me... maybe I can just
> > empty the mbox file?
> >
> > /usr/bin/sa-learn --spam --mbox /var/spool/mail/spam
> > echo > /var/spool/mail/spam
> > /usr/bi
>
> Here is the file I call from cron.daily, you can also call it manually. I
> put it in /usr/sbin
>
> snip---
> #!/bin/sh
>
> /usr/bin/sa-learn -x --ham --dir
> /home/e-smith/files/users/not-spam/Maildir/cur
> /usr/bin/sa-learn -x --spam --dir
> /home/e-smith/files/users/is-spam/Maildir/cur
>
At Sun Aug 10 10:45:08 2003, Gareth wrote:
> I'm using mbox, so I guess that wouldn't work for me... maybe I can just
> empty the mbox file?
>
> /usr/bin/sa-learn --spam --mbox /var/spool/mail/spam
> echo > /var/spool/mail/spam
> /usr/bin/sa-learn --ham --mbox /var/spool/mail/ham
> echo > /var/sp
> > I want to set-up a cron job to process these daily using sa-learn.
> >
> > 'sa-learn --spam --mbox spam -D' produces the following error :-(
>
> my first suggestion is to use full paths to your mailboxes.
>
I've just tried
/usr/bin/sa-learn --spam --mbox /var/spool/mail/spam
...and it w