Re: How to use Procmail to remove messages from server after x numberof days
Alan Clifford <[email protected]>
| Newsgroups | gmane.mail.procmail |
|---|---|
| Organization | http://rp.clifford.org.uk/potpourri/ |
| Message-ID | <[email protected]> |
On Wed, 2 Mar 2011, Tim Rice wrote:
>
> Procmail mail is such a powerful tool I was hoping it may offer a (clean)
> server side solution. But I think Bart's reply sums it up perfectly, not the
> right tool for the job.
I do it. Not on my system mailbox but on the mailboxes for mails such as
this mailing list which procmail has put in ~/mail/IN.procmail.
Essentially, it deletes stuff that is more than 'n' days old and keeps the
younger stuff.
It is rather a monster kludge involving cron, bash script, formail,
procmail and lockfile.
--
Alan
( Please address personal email to alan+1@ as email to lists@
is only read from my subscribed lists. )