On Fri, Sep 25, 2009 at 04:01:28PM +0100, Chris G wrote:
> Are there any obvious ways either within mutt or using some sort of
> external tool which would allow archiving and/or deletion of messages
> older than a certain date?
> 
> My ideal would be a tool that I could run either manually (or maybe
> from cron, but that might be a bit daring) which would select all
> messages in my ~/Mail hierarchy older than a specified date and move
> them to an archive area with the same hierarchy.
> 
> Second best would be a tool which would simply delete such messages as
> one could copy the whole hierarchy first.
> 
> It's fairly easy (?) to do such a thing for one mailbox/folder but I
> really need to do it for a fairly deep hierachy of messages.  Doing it
> folder by folder would be painful.

I use Archivemail (http://archivemail.sourceforge.net/) to do exactly what you
describe.

It runs from a nightly cronjob and archives mail older than (in my case) 180
days (roughly 6 months).

I use mbox format - I'm not sure about maildir but it works just fine for me!

Best regards

Mark

Attachment: pgpbQ9PnxXa3b.pgp
Description: PGP signature

Reply via email to