>
> 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
> rm -f /home/e-smith/files/users/not-spam/Maildir/cur/*.*
> rm -f /home/e-smith/files/users/is-spam/Maildir/cur/*.*
>
> ---snip---

Hi Bill

Thanks for that info...

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/spool/mail/ham

That doesn't completely empty the file, it makes it 1 byte.... If I just go
ahead and delete the file totally, I get all kinds of errors! Maybe rm then
touch?


Gareth



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to