On Fri, Mar 05, 2004 at 03:33:55PM +1100, Peter Hardy wrote: > On Fri, 2004-03-05 at 15:08, Alexander Samad wrote: > > No the last step is I want to be able to run a program/script against a > > mbox file and seperate into two files (or append to other files) emails > > that are older than a certain date and younger than a certain date. > > > > so before I venture off in to formail,perl and write my own does any > > body know of a package module that does this ? > > Yep! Called, funnily enough, archivemail. > > Nice little python jobbie that'll rotate anything older than a certain > date out of a given mail box and in to a compressed mbox.
Or you could consider converting from mbox format to Maildir format (which mutt and procmail both handle fine), which stores each message as a separate file instead of your monster mbox file. Rolling your own stuff for this sort of archiving then becomes almost trivial. Cheers, Gavin -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
