Skip to content

Instantly share code, notes, and snippets.

@nvkv
Created September 11, 2010 05:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nvkv/574841 to your computer and use it in GitHub Desktop.
Save nvkv/574841 to your computer and use it in GitHub Desktop.
#!/bin/zsh
killall Mail
BEFORE=`ls -lah ~/Library/Mail | grep -E 'Envelope Index$' | awk '{ print $5 }'`
sqlite3 ~/Library/Mail/'Envelope Index' vacuum
AFTER=`ls -lah ~/Library/Mail | grep -E 'Envelope Index$' | awk '{ print $5}'`
echo "before: $BEFORE"
echo "after: $AFTER"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment