Over time my inbox grows larger and larger…. and eventually it starts to take ages to sync/navigate around – 15,000+ messages in an inbox can’t help.
So – either I spend ages moving email around into some sort of archive folder, within my mail client (which always seems slow and clunky), or :
ssh root@mail.server cd /path/to/mail/david@blahblah.co.uk/cur mkdir -p ../.inbox-20131212/cur find . -mtime +90 -exec mv -t ../.inbox-20131212/cur/ {} \+
Job done. Well, inbox 3000 at least is a slight improvement.
(the “+” at the end of the find command tells find to try and put as many file names as it can there – rather than invoking an mv process for each file)