Topic: https://brettterpstra.com/2012/09/15/vacuuming-your-mail-app-index-still-works-wonders/
hide preview

What's next? verify your email address for reply notifications!

Ivo 12y, 113d ago

For it doesn't work.

hide preview

What's next? verify your email address for reply notifications!

John 12y, 119d ago

This worked great! Worked for me on Mountain Lion 10.8.2. Huge speed boost!

hide preview

What's next? verify your email address for reply notifications!

Joshua Kehn 12y, 184d ago

I added this to my .zshrc file. Thanks!

hide preview

What's next? verify your email address for reply notifications!

Kevin Yank 12y, 184d ago

Didn’t work for me:

➤ sqlite3 ~/Library/Mail/V2/MailData/Envelope\ Index vacuum;
SQL error: file is encrypted or is not a database
hide preview

What's next? verify your email address for reply notifications!

nl 12y, 185d ago

For whatever reason, I needed to modify the awk command to 'print $6' as the ls -lsh command puts the file size as the 6th column on the output, not the 5th. Not sure if that's just a typo at your end, or my end, or what....

In any case, thanks for this tip. Not sure yet if Mail.app will be any faster, but I did cut the size of the Envelope database by approx. 30%.

hide preview

What's next? verify your email address for reply notifications!

Thomas_U 12y, 185d ago

terrific improvement in responsiveness – Thanks a lot!

hide preview

What's next? verify your email address for reply notifications!

Peter 12y, 186d ago

Thanks a ton for this great tip! I'm still running Lion and the path and command is the same.

hide preview

What's next? verify your email address for reply notifications!