Re: clearing out SAspamaccept
Paul Makepeace <[email protected]>
| Newsgroups | gmane.mail.exim.spamassassin |
|---|---|
| Message-ID | <[email protected]> |
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/