[SA-exim] clearing out SAspamaccept

Thomas Kinghorn thomask at mtnns.net
Tue Apr 29 12:16:02 PDT 2003


Hi all.

Is there a way of clearing out the messages is SApermreject directory.

i would like to clear messages older than 21 days.

I was thinking of something like this

find /var/spool/exim/SApermreject/new/ -mtime +21 -print0 | xargs -0 rm -Rf

For some reason I need the arg rm -Rf, not just rm.

Please advise.

Thanks for the previous help.

Tom

-----Original Message-----
From: Paul Makepeace [mailto:merlins.org at paulm.com]
Sent: 29 April 2003 09:26
To: Thomas Kinghorn
Cc: Sa-Exim at 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/



More information about the SA-Exim mailing list