Mac and Windows CLI tricks
Make Apple Mail.app faster
sqlite3 ~/Library/Mail/Envelope\ Index vacuum .exit
(sources comments: [#1] and [#2])
It DOES work. For instance, check how many times Mail.app bounced on the Dock before opening before and after you did this operation. Might prove worthy of use for Yojimbo, too.