procmail
[Top] [All Lists]

Re: Expiring mailing lists

2006-02-13 21:56:36
Brian D wrote:
 I currently use fetchmail/procmail to sort incoming mail into imap
 mailboxes. I would think it is possible to set up a cron script to
 use procmail to expire read messages in the mailing list mailboxes.

 Would this be a good way to go about it, if so can anyone point me in
 the right direction.

Not a procmail solution, but I'm using archivemail 
(http://archivemail.sourceforge.net/) with good success. It's based on 
python, and can archive (or delete) old messages in IMAP, mbox, MH and 
maildir format mailboxes. It has options for leaving messages flagged 
important or unread in place, so you should be able to just set a short 
retention time while preserving unread. I've created a script called by 
cron which reads a simple file listing filespecs for my folders, 
allowing different folder to have different retention periods and just 
clearing out older stuff.

I suppose one could use formail + procmail (if a non-grep'able format) 
to do something similar, but archivemail suits my needs well.

- Bob





____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>
  • Re: Expiring mailing lists, Bob George <=