8 Mar

Apple Mail application very slow to respond

Problem

Apple Mail is very slow in it’s response. Message lists take ages to update and the app itself seems to pause for 15-20 seconds.

Cause

The SQL database that Mail uses to catalog your email addresses needs a bit of housekeeping now and again, you really need to have a tidy up!

Solution

First quit Mail – then:

For OSX Lion (10.7) and Mountain Lion (10.8) you need to do the following:

  1. Open the Terminal App – You can find this by using spotlight and typing terminal.
  2. Copy and paste this command into the command line of Terminal:
    sqlite3 ~/Library/Mail/V2/MailData/Envelope\ Index vacuum;

For Snow Leopard (10.6) you need to do the following:

  1. Open the Terminal App – You can find this by using spotlight and typing terminal.
  2. Copy and paste this command into the command line of Terminal:
    /usr/bin/sqlite3 ~/Library/Mail/Envelope\ Index vacuum;

You should now find that Mail runs much faster.

149 Responses to Apple Mail application very slow to respond

  1. This fixed my problem. Thanks!

  2. thanks. It works !!

  3. good tip; I should note that the terminal command did not occur instantly – it took a few minutes before the vacuum finished and the prompt returned.

  4. Wow! I don’t know much about how computers run and I was worried my macbook pro was getting too old (I guess a good excuse to buy a new one, but as a poor grad student that would have been painful to my wallet), but this fixed everything! Thanks

  5. OMG. Relief. And instructions a non-techie could totally do. Worked instantly with my Lion as soon as I did a force quit on mail.

  6. Perfect – problem solved

  7. Works perfectly! Very Nice. Worked on my snow leopard.

  8. Often scared to try these things I find online but I have to say THIS WORKS.
    I have a new MacBook Air and I thought there was something wrong with it.
    Thank you!

  9. I have Mountain Lion, and before trying this it took sometimes 30 seconds or more for Mail to open. After running this command, everything now works very fast. Great solution!

  10. excellent ! Thanks a lot, it’s changing my life :)

  11. I was having the same problem and the fix worked for me also!! thanks so much!

  12. Great fix – thanks.

  13. Worked like a charm! thank you!

  14. I am a hero to my wife! Thank you!!!

  15. Worked for me too; thanks!

  16. Sweet job, thank you!

  17. Attila Eross May 30, 2013 at 16:56

    Works perfectly! Thx

  18. Thanks so much. I was so frustrated with my computer until I found this.

  19. Instant fix! Many thanks

  20. Francis Castelino June 3, 2013 at 16:33

    Amazing, stumbled on this site and have had two separate major problems resolved in a flash. Been through a few others as in a nightmare…

  21. Thanks!! This is absolutely awesome. You have relieved me of a great worry. Mail is one of the most frequent apps I use and it was extremely distracting to have it slow and frozen. :)

  22. Amazing–Tank you!

  23. Bless you!

  24. Thank you! sure made a difference

  25. Fixed ;) Thank you

  26. Worked perfectly! Thanks!

  27. Awesome fix!

  28. Fixed it totally thank you

  29. Wow . Was a bit worried before trying…. It worked so well . Thanks a lot

  30. Yep. A perfect fix. Mail was taking 20-30 seconds to display a message from my “unread” smart mailbox (which usually has about 20 messages in it). Now, no delay.

    Thanks!

  31. What would I do without stuff like this on the web? Go Crazy Thanks

  32. Thanks! Worked perfectly.

  33. Nice fix, worked like a charm! Thanks!

  34. Thank you so very much this worked beautifully

  35. Many thanks!

  36. Loving your work!

    This has been bugging me for a while, will be using again.

  37. This worked great! Thanks!

  38. Awesome. It just worked!

  39. Thanks! life saver!

  40. OMG you saved my comp from a drowning (by me)!! Thank you, thank you, thank you! Bookmarking this page!

  41. WOW! Awesome. Worked great!

    Is there a command like that would speed up my entire mac !?!

  42. Thank you. My message window was taking for eeeeeeever to load, especially when there were attachments. Seems much better.

  43. Immediate relief from a plaguing problem. My question is “Why didn’t Apple make it easy to diagnose and remedy the problem”. Thank you for making the explanation and the “clean up” available to all the frustrated Mail users.

    • Follow-up! Worked fine for a very short time. The problem returned and the “cleanup fix” does not stop the slow response time that I am experiencing with Mail. After the second “pasting” to terminal, I checked the activity monitor and Mail is using 95% of CPU. Something else is going on other than the SQL Database needing “housecleaning”.

    • Does anyone notice only positive comments in the review section. The next day I added a follow-up to my comment that stated the fix only worked for a short time and I still had the original problem with Mail. This comment was not displayed which leaves me wondering why the moderator would prevent it. It was not intended to be negative, but it was an attempt to seek further help for the problem.

      • Hi Ed,
        This is not an example of selective comments being approved. If a comment requires a more technical response it’s passed to support so they can find a fix for the problem. It’s not approved so it sits in a (shorter) pending list and doesn’t get lost in the hundreds of other comments. :D

        • Thanks Adam,
          Your explanation restores my confidence in Fix-KB.com and I believe posting your answer to me in the comment section will be helpful to others that are participating and looking for answers to those nagging problems that come up. This will help us all to better understand the proper use and expected results from your wonderful web site.

      • Mohamed Nagib April 9, 2014 at 14:59

        Im having the same issue, it works temporarily, i donno why it suddenly became so slow. Its so frustrating !

  44. Thanks! Worked like a charm!

  45. While this seems to work for all.. I have the problem that it says

    Unable to open database “~/Library/Mail/Envelope\”: unable to open database file

    What can I do about it – or is this normal? Thanks a lot

  46. This is a vital tool in the toolbox…. Thank you!

  47. thank you it worked very well

  48. Worked for me! Thanks

  49. I had the same problem and I just quit mail right click and quit and then when it was opened back up all was good? Maybe it doesn’t like being open all the time……….

  50. Mary Anne Doggett August 12, 2013 at 20:08

    hi I am getting a terminal error that says
    -sqlite3: Error: too many options: “vacuum;”

    Can you help?

    Thanks!

    Mary Anne

  51. Thank you so much! Thought my Mac was dying on me! And many thanks for giving easy to follow directions for all of us non-techies!!

  52. This worked BEAUTIFULLY!!!! Thank you so much!

  53. excelent!!!!

  54. Worked great. Thx!

  55. On Mac OSXv10.7.5 I got error database is locked for the sqlite3 ~/Library/Mail/V2/MailData/Envelope\ Index vacuum; command but I tried the /usr/bin/sqlite3 ~/Library/Mail/Envelope\ Index vacuum; and that didn’t get any problems. I have relaunched mail but it still slow.

    Any advise?

  56. Its ok I didn’t quit mail first so ignore the last comment from me.

    Thanks.

  57. That totally worked! Thanks

  58. How come Apple support does not know about this?

    Well done

  59. For Snow Leopard (10.6) you need to do the following:

    Open the Terminal App – You can find this by using spotlight and typing terminal.
    Copy and paste this command into the command line of Terminal:
    /usr/bin/sqlite3 ~/Library/Mail/Envelope\ Index vacuum
    I did that nothing happen so i click enter no change ?
    And i still have the same problem.
    My problem is the same in both of my computer, Mac book 10.6.8 and IMac 10.8.4, when i send a mail through my routeur, DLink Dir-815, in WiFI for my Mac Book and normal with my IMac it take about 1 to minutes to go. i call DLink and Apple nobody find a solution. Look like there is a conflit between Mail and the routeur. Please HELP !!!
    Thank you .JM

  60. fantastic!

  61. Works like a charm.. Thank you!

  62. Fabulous! Thank you. Read, tried and fixed in less than 30 seconds!

  63. bless your effing heart for this.

  64. It’s been running like a snail on and off for some months now. Just tried this and it seems to be a lot better. I’ll keep monitoring it and see how it goes. Many thanks.

  65. thanks it fix well

  66. It worked a treat!

  67. It really is super.. and such an instant fix!

  68. I have to do this once a week. Why? Is there a bigger reason it keeps coming back?

  69. WOW, that was easy, and back to super quick

  70. Worked immediately! thank you

  71. Absolutely have to try this but some dumb questions: 1) when you say ‘quit’ mail – does this mean force quit or just close it? If force quit – when done with the copy and paste, do I need to do anything re macMail? 2) when I bring up ‘terminal’, see two lines of stuff there already – do I just paste at the end of the second line??

    • Quit means ‘cmd + q’. We don’t want to force quit unless absolutely necessary. When you log into terminal the first line will tell you last login, the second is your username. Don’t worry about these, just paste and hit enter.

  72. Kristine T Hall September 11, 2013 at 16:06

    Perfect solution – easy to follow, took seconds and made all the difference. Thank you!

  73. Wonderful !!!
    I have been working with mail pain for months。。。。crying , but not Hahaha
    Thank you !

  74. It looks like the 10.8.5 update may have fixed the problem: “fixes an issue that may prevent Mail from displaying messages”. So far it is working well.

  75. I have had this problem on two occasions in the last 9 months. I spent a total of around an hour with Apple technical support who fixed the problem with lots of cache deletion and other “magic”

    I did this myself in 30 seconds………….it worked, many thanks

  76. Worked perfectly, thanks a lot!

  77. Holy cow! This did the trick! Thanks a lot!

  78. I could kiss you! Thank you so much.

  79. yes it worked – thank you!!

  80. I have a problem. I pasted the wrong link to terminal line of command. I am using mountain lion, but i paste the snow leopard command.

    Now i have problem with my mail, it hangs, with spinning disc sign – red,blue, green.

    Can help me to restore.

    All the earlier download mail is gone, all folders are empty.

    Thank you.

  81. Wow, THANKS! Clearly if I cannot figure out mail on my own, a lot of other things are slowly building and getting hosed up. Any tips for doing maintenance such as this to prevent problems in the future?

  82. Great… your a genius.

  83. Wow! Thank you!

  84. HELP!!! i run the command on Mtn Lion and restart my Mac, but it won’t boot up!? it’s stuck on grey startup screen with Mac icon and spinner…

  85. Wow, Fantastic tip. Thank You Much.

  86. Yes, It worked.. Thanks a lot!

  87. OMG!!!!!! it actually worked!!!!!! thanks a million!! i was devastated my outgoing mail was taking about an hour to send!!

  88. I tried this and got the following error message in Terminal: ‘Unable to open database “/Users/salimsalam/Library/Mail/V2/MailData/Envelope Index”: unable to open database file’

    ANy suggestions? I am running Snow Leopard with Mail.4.6 and I am finding emails are taking ages to send, if they send at all, and that updating folders is very slow. The Mail icon in the dock shows there are unread messages even when I have opened all messages and deleted everything that needs deleting.

  89. Sorry, worked it out – I cut and paste the command line for the wrong version of OSX. Doh!

  90. OK, but it didn’t work!

  91. Did not work for me. My mailbox is huge though, is that the issue?

  92. Will this work on Mavericks as well? You only mention OSX Lion (10.7) and Mountain Lion (10.8).

  93. Does anybody know if this will work on Mavericks?

  94. Hi….I need wait to reopen the mail….because noting happen….Im using Maverick

  95. So, after pasting that in the Terminal window, then what does one do? I closed Terminal and launched Mail again but nothing has changed.

  96. Worked like a charm! Thanks

  97. I’m wondering (before I try this) if it works the same way for Mavericks? Or will that mess things up?

    My slllllooooooowwwww Mail app is driving me bonkers!

    Thanks,

    ea/

    • I’m with you…nobody has mentioned Mavericks…although I did ask originally. It’s painful that Mail is so slow now. Any attachments above 1Mb just won’t send…..massively frustrating. Apple online help weren’t able to amend anything either. I’ve tried the Terminal copy and paste solution with little or no effect. Apple seriously need to fix this.

      A

  98. Worked like magic, thanks!

  99. Mine has been running terrible slow since the upgrade to Mavericks. I had this problem once before, but can’t remember how to fix it. This prompt didn’t seem to fix my problem, maybe there is a different prompt for Mavericks?

  100. What do I use for the new operating system? I get “error database is locked” which I try the newest one listed above. Thanks!

  101. THANK YOU SO MUCH!!!!!! :) )))

  102. Amazing! thank you!

  103. Great! Thanks!

  104. WOW, it works wonderful, for Mail 7.0 under OS X 10.9 (Mavericks). I was annoyed by Mail’s performance but now my faith in this excellent piece of software is restored.

  105. I tried your fix and this is the response I got:

    -sqlite3: Error: too many options: “vacuum;”
    Use -help for a list of options.

    [Process completed]

    Now what?

  106. Holy cow–it works!

    A thousand thanks!

  107. Wowsers – even with all the comments above, I wasn’t expecting it to work quite as well as that – t hank you so much, you have saved me hours of frustration!

  108. Thanks man, worked perfectly! Cheers.

  109. awesome. a neat trick that has reived my mac! thanks

  110. Hi all, does anybody know if this fix works with the 10.9.1 Mavericks OS?
    Thanks!
    Andy

  111. Immediate fix – amazing!

  112. Hello,
    Do you know if this fix will work in the new apple OS: Mavericks 10.9?

    Thanks very much, Matthew

  113. Thanks! Indeed that worked like a magical Hogwarts Charm!

  114. Works for Maverick too! Thanks so much for this help.

  115. thank you, this brings a smile to this day!

  116. I tried the proposed solution without success. My system is OS X 10.8.5 but i don’t know is my macbook air system is Lion or lion mountain. Also let me know if ; should also be part of the copy paste
    Thank

  117. This worked the first two times I used it but my email has slowed down dramatically again and it doesn’t seem to do the trick anymore. Any other suggestions?

    • I suffered the same problem Corinne….I just have to keep quitting Mail, and restarting it. Eventually the email sends. I’m running Mavericks 10.9.1. I’ve tried sorting it out with Apple with an online chat, but to no avail, as I’m back to square one. Any emails with an attachment over 1Mb just won’t send, which is crazy considering I used to be able to send attachments up to 10mb! Apple really need to sort this out…

  118. Michael Richards February 3, 2014 at 22:36

    I tried this but get an error message which says ‘too many options: “vacuum;”

    What does this mean I wonder?

  119. When I pasted the link into the command field, this error message appeared:

    -sqlite3: Error: too many options: “vacuum;”
    Use -help for a list of options.

    [Process completed]

    Does anyone know what this means? I would really like to speed up my mail application. Thanks in advance.

  120. Thanks, a noticeable improvement.

  121. Brilliant! Worked on Mavericks too

  122. With the multitude of positive results including mine, I’m wondering why Apple doesn’t address vacuuming into the functionality of the OS

  123. Brilliant. Thank you so much

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

    This trick worked really well!!! THANK you!!!!!

  125. Wonderful still works in 2014

  126. Wish I had found this site a long time ago! Thanks for posting. Worked great!

  127. Hooray, thank you!! 2 days of suffering slow emails and multiple pauses until I found this fix.

  128. This worked great! Thanks

  129. THANK YOU THANK YOU !!!

  130. It worked for me running Mavericks. Thank you!

  131. This has just worked for me running Mavericks (10.9.4) too. Thanks!

  132. Amazing fix. Thanks very much!

  133. Is there a new fix for OS 10.9.4 ?
    My mail program is painfully slow.

  134. Great! – thanks a lot!
    How is a mere user expected to find such essential fix?

  135. Fantastic. Instant, and total fix. Solved all my problems. Why can’t all solutions be this easy and effective??

Leave a Reply