Speed up Mail--Keep Envelope Index clean
Posted: Sat Jun 21, 2008 10:31 pm
Mail uses sqlite3 in its backend to keep a database of all the messages it contains. When messages are deleted, outdated entries can slow down Mail. To keep it running quickly, you can run the following command from the terminal:
I set this up as a Hazel rule as follows:
On folder Applications, if name is Mail and date last matched is not in the last 1 week,
Run embedded script:
/usr/bin/sqlite3 ~/Library/Mail/Envelope\ Index vacuum
You can leave the default shell set as /bin/sh
Note that this will work on any program that has an Envelope Index, such as Yojimbo. To find out which programs you use have this file, open a terminal and type the following commands:
You will then get a list of all the files you can run this on.
- Code: Select all
/usr/bin/sqlite3 ~/Library/Mail/Envelope\ Index vacuum
I set this up as a Hazel rule as follows:
On folder Applications, if name is Mail and date last matched is not in the last 1 week,
Run embedded script:
/usr/bin/sqlite3 ~/Library/Mail/Envelope\ Index vacuum
You can leave the default shell set as /bin/sh
Note that this will work on any program that has an Envelope Index, such as Yojimbo. To find out which programs you use have this file, open a terminal and type the following commands:
- Code: Select all
cd ~
find . -name 'Envelope Index' -print
You will then get a list of all the files you can run this on.