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/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?

Get rid of the "echo":

 > /var/spool/mail/spam
 > /var/spool/mail/ham

should do the trick.

Martin
-- 
Martin Radford              |   "Only wimps use tape backup: _real_ 
[EMAIL PROTECTED] | men just upload their important stuff  -o)
Registered Linux user #9257 |  on ftp and let the rest of the world  /\\
- see http://counter.li.org |       mirror it ;)"  - Linus Torvalds _\_V


-------------------------------------------------------
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