RE: clearing out SAspamaccept

Thomas Kinghorn <[email protected]>
Newsgroups gmane.mail.exim.spamassassin
Message-ID <[email protected]>
many thanks Paul.

-----Original Message-----
From: Paul Makepeace [mailto:[email protected]]
Sent: 29 April 2003 09:26
To: Thomas Kinghorn
Cc: Sa-Exim@Lists. Merlins. Org (E-mail)
Subject: Re: [SA-exim] clearing out SAspamaccept


On Tue, Apr 29, 2003 at 09:00:15AM +0200, Thomas Kinghorn wrote:
> Is there a way to zip or clear the mail in SAspamaccept?
> 
> My directory is massive.
> There must be a way to automate this, however, I am pretty new to SA-Exim.

You could try something like,

find /var/spool/exim/SAspamaccept -mtime +7 -print0 | xargs -0 rm

Which will remove anything modified (or created in this case) over seven
days. The -0 deals with the horrid filenames being produced.

You could have this scheduled to happen at regular intervals. Look in
man 5 crontab and man 1 crontab.

Paul

-- 
Paul Makepeace ....................................... http://paulm.com/

"If one paper burns well, then what can you do."
   -- http://paulm.com/toys/surrealism/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.