Download the new Switched app for your iPhone

Skip to Content

Engadget for the iPhone: download the app now
AOL Tech

Filed under: Software, Tips and tricks, Internet Tools

Mail slowing you down? Rebuild its database

Apple's flagship email client had me banging my head against a wall again when I finally dug up this tip on rebuilding Mail.app's 'Envelope Index' SQLite database at Hawk Wings (If you're wondering what that file is all about, check out Hawk Wing's "What's in your Mail folder?" post). Forcing Mail.app to rebuild this file is as simple as quitting the app, browsing to your ~/Library/Mail/ folder and dragging out the file called 'Envelope Index' to your desktop (I'd recommend making a backup of your Mail support folder before attempting this. Don't say we didn't warn you). Start Mail.app back up and it will give you a message about re-importing or re-indexing all of your messages (sorry, I forgot to screencap the message), and depending on how many you have it could take a couple minutes. I have over 13,000 emails and it didn't take my G4 PowerBook long at all.

My Envelope Index was over 300 MB before I started this, and after it was all said and done that file weighed in at less than 4 MB. Putting Mail.app on this kind of a weight loss program can seriously speed it up and generally improve its performance; no more clicking on a new message 10 minutes after Mail.app notified me about it only to be greeted by "this message has not been downloaded yet..." silliness.

It is also worth mentioning that this tip is probably more of a troubleshooting technique than something you should work into your regular maintenance tasks. A commenter on this tip at Hawk Wings pointed out that this rebuilding operation nullifies a couple of mailbox settings. If you have set any specific IMAP mailboxes to be used for trash or junk, Mail.app will forget those settings after this rebuild. Still, I think the performance gain and all-around less-schizophrenic behavior of Mail.app was worth having to reset a couple of preferences.

[UPDATE: Some commenters have pointed out that Mail also has a Rebuild option under the Mailbox menu (at least in Tiger). I tinkered with this on one of my 4 IMAP accounts and it seems to do the same trick with far less fuss. Thanks for the tip!]
jobs & resumes
Mac Support Technician

Kerdan - Cambridge, MA (2 weeks ago)

See More Relevant Jobs ›

Related Articles From The Unofficial Apple Weblog

Reader Comments (Page 1 of 2)

Tip of the Day

Want to drag a file to another folder and copy it instead of moving it? Press the Option key when you drag that file and it'll be duplicated rather than moved entirely.

Follow us on Twitter!

TUAW [Cafepress] 

Featured Galleries

DNC Macs
Macworld 2008 Keynote
Macworld 2008 Build-up
Google Earth for iPhone
Podcaster
Storyist 2.0
AT&T Navigator Road Test
Bento for iPhone 1.0
Scrabble for iPhone
Tom Bihn Checkpoint Flyer Briefcase
Apple Vanity Plates
Apple booth Macworld 07
WorldVoice Radio
Quickoffice for iPhone 1.1.1
Daylite 3.9 Review
DiscPainter
Mariner Calc for iPhone
2009CupertinoBus
Crash Bandicoot Nitro Kart 3D
MLB.com At Bat 2009
Macworld Expo 2007 show floor

 

Our Writers

Victor Agreda, Jr.

Programming Manager, AOL Tech

RSS Feed

View more Writers

More Apple Analysis

AOL Radio TUAW on Stitcher