Moving towards ‘inbox zero’

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/
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)

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>