- 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.