[Gllug] Maildir Archiving

countd countd42 at googlemail.com
Wed Mar 12 10:15:36 UTC 2008


On Tue, Mar 11, 2008 at 9:01 PM, Ben Whyte <ben at whyte-systems.co.uk> wrote:
>  I am am trying to archive up some mailboxes that are in mail dir format.
>
>  They all live under a specific directory.
>
>  I am  looking to archive all the mail older than 90 days, preferably
>  taring the files up before moving them off.

What about using find? eg:
find ~/Maildir/cur -type f -mtime +90 -print0|xargs -0 -i mv {}
~/Maildir/.archive/cur
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list