Apple Mail, especially earlier versions of Apple Mail, may start to slow down after a long period of time…
Evidently as everyone knows, it is possible to get quite a speed boost out of Mail.app by stripping all the bloat out of its Envelope index, an SQLite database Mail uses to store senders, recipients, subjects and so on.
What’s the easiest way to do this?
- Quit Mail.
- Open Terminal.
- Type the following:
cd ~/Library/Mail
sqlite3 Envelope\ Index
An sqlite> prompt will appear.
At that prompt, type vacuum subjects;
After a short delay, the prompt will return. Type Control-D to exit. - Restart Mail and enjoy the extra speed.
Does it work? Â The first time he tried this, Rob Griffiths of macOSXHints reduced his Envelope index from 25.9MB to 4.5MB.
Okay, so that’s not the easiest way… Â Instead download
Sebastian Morsch has written a script that quits Mail, runs the sqlite commands and then relaunches Mail at the end of the process. You can get the script from his web site.