Re: How to use Procmail to remove messages from server after x numberof days

[email protected] (Professional Software Engineering)
Newsgroups gmane.mail.procmail
Organization Professional Software Engineering
Message-ID <[email protected]>
At 09:50 2011-03-01, Alan Clifford wrote:
>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.

If you just move the messages into dated subdirectories, you don't 
have to reprocess anything.  The downside is that exchanged rarely 
wrap up within the confines of an arbitrary date cutoff, so you've 
got exchanges in last months (or weeks) archive, and they continue 
into the current one.  But then, lots of stuff doesn't wrap up in 
7-10 days either.

---
  Sean B. Straw / Professional Software Engineering

  Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
  Please DO NOT carbon me on list replies.  I'll get my copy from the list.
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.