Speed Up Mail In OS X

Technology
Speed Up Mail In OS X

macmail_20070304.jpg
Cory over at BoingBoing writes:

The Mail.app fan-site Hawk Wings has a great tip for Mail.app users — a simple command that many are swearing by as a means of evincing a gigantic speedup in Mail.app’s performance. If you’re suffering through the same hell I lived with back in my PowerBook days, you might give it a shot.

Apparantly, Mail.app uses sqlite for it’s mail databases. In order to make normal, day-to-day inserting and deleting of mail items speedy, these typical transactions don’t force the database file to go through an optimization process. Over time, however, the mail database can end up fragmented and can be sped up quite a bit by reclaiming unused space and cleaning up the database structure. Here’s how you can do this with the Mail database:

  1. Quit Mail.
  2. Open Terminal.
  3. 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.
  4. Restart Mail and enjoy the extra speed.

Scripts to automate the Mail.app Envelope speed trick – [via] Link.

Related:

2 thoughts on “Speed Up Mail In OS X

  1. andy-lester says:

    VACUUM became a no-op when the GDBM backend was removed from SQLITE in version 2.0.0. VACUUM was reimplemented in version 2.8.1. The index or table name argument is now ignored.

Comments are closed.

Discuss this article with the rest of the community on our Discord server!
Tagged

ADVERTISEMENT

Maker Faire Bay Area 2023 - Mare Island, CA

Escape to an island of imagination + innovation as Maker Faire Bay Area returns for its 15th iteration!

Buy Tickets today! SAVE 15% and lock-in your preferred date(s).

FEEDBACK