Chapter in this post:
For a few days now, I've been struggling with Apple's mail program, which closes after a few seconds after it starts. Apple Support has not been able to help me so far and has offered me a support ticket for 49 EUR, but to be honest, the stupid Apple Mail has now grabbed my honor. And of course I would like to save the 49 EUR ... :-)
Insert: Easier solution possible with Mac tool OnyX
What I only recently discovered: There is one free Mac app called "OnyX", which has a Mailboxes > Clear Current Index option under the Optimize menu section. So you can forget this guide below and simply remove the corresponding files from the App delete. If you don't want to work through Apple Mail's Library folder, you're welcome to use the tool. Everyone else can continue reading below.
Manually delete the Apple Mail mail database index
But this tip is only supposed to help people who want to rebuild their Apple Mail database. In earlier versions of OS X there was a trick where you had to hold down the ALT key while starting Mail to have Mail rebuild the DB, but that works on OS X. Mavericks (more ouch available) no more. For this reason, here are the instructions on how to solve it (works from OS X 10.7 to 10.15 (macOS Catalina)):
- the first thing to do is to close Apple Mail
- im Finder hold down the "alt" key and select the "Library" folder in the "Go" menu at the top (the folder only becomes visible if you hold down the ALT key)
- then you switch to this folder "Mail" -> "V2" -> "MailData"
Update: for Mojave please use this path: Mail> V6> MailData
Update: January 07.01.2020th, 7: with macOS Cataliona the path is: Mail> VXNUMX> MailData
- In the "MailData" folder you will find some files that start with "Envelope Index".
- these files must all be removed (deleted or moved) from the folder
- when you start Apple Mail again, you will be informed that the database has to be recreated - this can take a few minutes, depending on the size
Update 30.05.2016: The instructions also work with OS X 10.10 "El Capitan", but in the 3rd step you have to open the "V3" folder and not "V2". Therein lies the corresponding data under El Capitan.
Update 12.01.2019: I just checked whether you can also follow these instructions under macOS Mojave (10.14). This works so far, except that the subfolder in "Mail" is not called "V2" or "V3" but "V6".
Here is another screenshot with my view of the MailData folder (under OS X 10.9) and the selected files that I have removed:
Under the macOS High Sierra system, I have the "V5" folder, which is probably the corresponding folder for the current macOS. The folder is named "V6" on Mojave and "V7" on Catalina. Just look at what the highest value is after the "V" in the file name and access this folder. So this guide should also work for future macOS versions.
Jens has been running the blog since 2012. He appears as Sir Apfelot for his readers and helps them with problems of a technical nature. In his free time he drives electric unicycles, takes photos (preferably with his iPhone, of course), climbs around in the Hessian mountains or hikes with the family. His articles deal with Apple products, news from the world of drones or solutions for current bugs.
Did you like the article and did the instructions on the blog help you? Then I would be happy if you the blog via a Steady Membership or at Patreon would support.