Skip to content

Instantly share code, notes, and snippets.

@joeybaker
Created May 10, 2012 18:39
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 joeybaker/2654972 to your computer and use it in GitHub Desktop.
Save joeybaker/2654972 to your computer and use it in GitHub Desktop.
Clean Mail.app Database
# 1. Quit mail
# 2. Load terminal
# 3. cd ~/Library/Mail
# 4. sqlite3 Envelope\ Index
# 5. at the 'sqlite>' prompt, enter 'vacuum subjects;' and then 'vacuum;'
# 6. Reload mail - it may well be faster loading and your search may well work again!
cd ~/Library/Mail
sqlite3 Envelope\ Index
vacuum subjects;
vacuum;
.exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment