Mail archiving

Tim Potter tpot at samba.org
Thu Sep 5 14:29:54 EST 2002


On Thu, Sep 05, 2002 at 02:25:05PM +1000, Martijn van Oosterhout wrote:

> As everyone knows, mutt doesn't handle large mailboxes very well (at least
> not in mbox format). What I would like to do is to automatically move mail
> older than 3 months to another folder. While this is possible in mutt by
> typing the right commands, does anyone know a non-interactive way of doing
> it?

I use grepmail and a cron job.

lockfile foo.mbox
grepmail -d "since 3 months ago" foo.mbox > foo-new.mbox
[ $? = 0 ] && mv foo-new.mbox foo.mbox
rm -f foo.mbox.lock


Tim.



More information about the linux mailing list