Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I have about 31,300 emails in 4 different inboxes in Mail. Sadly to say, it is extremely slow.

Is there any tips or trips to optimize Mail? And no, I don't want to delete any, I need them for work.

share|improve this question
    
What kind of hard drive do you use? –  FossilizedCarlos Oct 9 '12 at 0:39
    
Uh, whatever is in my 24" iMac. –  Nic Hubbard Oct 9 '12 at 7:23

2 Answers 2

up vote 5 down vote accepted

The easiest thing to do is clean up the index file Mail uses to track the messages:

  sqlite3 ~/Library/Mail/V2/MailData/Envelope\ Index vacuum;

Thanks for this tip to the estimable Brett Terpstra. The linked article explains how to make an AppleScript file to measure things before and after to see if the operation thinned out the size of the file Mail uses to store the pointers to the messages. I would add, quit Mail and make a backup before trying to clean the file. A vacuum operation is normally harmless, but why not get a backup just in case.

Also, this thread probably goes back to @bbum and his weblog-o-mat and perhaps even deeper back...

share|improve this answer
    
Nice one! Thanks! –  Nic Hubbard Oct 9 '12 at 7:26
    
Joshua- Awesome! That was driving me crazy and mail is running blazing fast again. Thanks. –  user44068 Mar 1 '13 at 6:35

For me the sqlite3 vacuum didn't speed Mail.app back up.

The thing that returned my Mail.app to blazing fast speeds was deleting the mail sandbox folder.

  1. Quit Mail.app
  2. Delete the folder ~/Library/Containers/com.apple.mail (use rm -r ~/Library/Containers/com.apple.mail from Terminal, or in Finder press Cmd-Shift-G, enter ~/Library/Containers then find the com.apple.mail folder and drag to trash and empty trash)
  3. Relaunch Mail.app

Source: https://discussions.apple.com/message/20662231#20662231

share|improve this answer
    
Great! The only disadvantage for me was the reset of the Mail.app UI. The speed is incredible now. –  anticyclope Feb 21 '13 at 16:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.