Archiving mail after a period of time

Matthew Miller mattdm at mattdm.org
Wed Apr 28 21:33:44 UTC 2004


On Wed, Apr 28, 2004 at 09:41:01PM +0100, Ed Jones wrote:
> I'd like to start archiving mail from these mailboxes after a certain period
> (perhaps a month). Obviously, I could simply write a cron script to move the
> whole mailbox file to another location, compress it and touch a new mailbox
> file with appropriate permissions, but that would be a bit messy -
> especially if I need to read the messages again.

Why is that messy? It seems like the right approach. If you use Maildir (one
message, one file), you can even update off the bottom, so you always have
the last seven day's messages in the 'current' folder, and all older ones get
pushed off to 'archive'.

-- 
Matthew Miller           mattdm at mattdm.org        <http://www.mattdm.org/>
Boston University Linux      ------>                <http://linux.bu.edu/>





More information about the fedora-list mailing list