Mail.app High Sierra Crash - Error MessageSince upgrading to the very first public beta of macOS High Sierra, I was encountering an issue with Mail.app crashing after a few minutes – and since the crashes were still persistent in the most recent 10.13 Beta (17A358a), I started looking into it myself, rather than waiting for another beta release to fix this.

With success: I was able to fix my Mail.app crashing continuously in macOS High Sierra by rebuilding Mail’s Envelope Index files.

How to fix Mail.app crashing in macOS High Sierra after upgrade

Turns out that after the OS upgrade, the Mail.app indexes were broken and causing it to crash. Time to rebuild them:

  1. Quit Mail.app in case it’s running
  2. Go into the MailData folder (using CMD+Shift+G in Finder) located at
    ~/Library/Mail/V5/MailData
    Mail.app High Sierra Crash - Find the Envelope Index Files
  3. Move the following files to the Trash (or to your Desktop, in case you want to backup)
    • Envelope Index
    • Envelope Index-shm
    • Envelope Index-wal

    Mail.app High Sierra Crash - Fix Removing Envelope Index Files

  4. That’s it – now restart Mail.app & confirm to rebuild the index (this might take a while…)

Once done, Mail.app should run without crashing anymore. Kudos to this old Apple-Holic article over at computerworld.com for describing the procedure!

Share:
  • 27
  • 56

27 thoughts on “Fix Mail.app crashing in macOS – remove and rebuild Envelope Index files”

  1. Thanks–I did this today, and noticed that I was unable to search my mac mail after this–it wouldn’t bring up messages anymore aside from calendar invites…. did this happen to you or anyone else?

    1. Hi Jessie,
      No, I didn’t encounter these issues. But remember, that the whole search index of all Mail messages needs to be rebuilt, which can take some time (probably even in the background after the initial startup, which rebuilds the message index). I had it run over night and everything was fine the next day.

      1. I can’t get to the MailData! CMND – G is not working! Any other ideas how to get to the envelopes?

      2. @Carol sorry my bad, it’s actually „CMD+Shift+G“ – or just open the „Go“-menu on the top menu bar in Finder and manually select „Go to folder…“

        Hope that helps!

  2. Is this way still working to fix Mail.app crashing problem? Because my Mac OS is high sierra version 10.13.6 (17G65) However, I didn’t find MailData folder in my computer. It will be greatly appreciated if you could let me know where to find the MailData folder. Thank you!!

    1. Hi Risa,
      Try checking the Mail folder here – probably you have a different version folder inside it (not V5 like I do):

      Use CMD+G in Finder and locate
      ~/Library/Mail/

      Check for any folder „Vx“ there, it should contain the EnvelopeIndex files.

  3. I did this, as well as a bunch of other things I found on various forums, and the mail application just quits unexpectedly as soon as I open it… 🙁

    1. Hi @Samuel & @Apercu
      In this case I would recommend moving the whole „Mail“-folder from ~/Library/ e.g. to the Desktop or Documents folder (Backup) and then trying to startup Mail.app again.

      If this still doesn’t work, also move out the Mail-Preferences file from ~/Library/Preferences/ (including the „Mail“-folder as mentioned above) and restarting Mail.

      If this also doesn’t work; try to disable all E-Mail Accounts from „System Preferences > Internet Accounts“ and then starting Mail.app, continue by either reenabling one Internet Account after the other – or readd them from scratch in the Account settings.

      Hope you‘ll be able to sort this out!

      Regards,
      Oliver

  4. This works for me but when I send an email it immediately crashes and then i need to delete the envelop files to get mac mail to open without crashing..

    1. That’s very odd – did you wait with sending a new e-Mail until the index was completely rebuilt after Mail.app started up with deleted enevlope index files?

    1. In Finder use the “Go”-menu from the menubar and select “Go to Folder…”.
      In the popup appearing, enter the following text: ~/Library/Mail/ & confirm with the “Go” button.

  5. Hi My mail freezes in Hi Sierra. Have around 9 e-mail accounts setup. Have to force quit mail. Thought it might be due to the size of the mail folders. Was hoping to archive my year like in Outlook but can seem to do this in Mac Mail ?

    Thanks,

    Robert

  6. I’ve done all of the instructions several times, rebuilt all mailboxes and as soon as I search for an email it crashes.

  7. Thank you very much for the suggestion, has worked beautifully for me (>50 mail boxes, >200,000 mails, took 10 min).

  8. Fantastic! I’ve been searching for quite some time for an answer as it was happening on both my iMac and laptop. It’s simple for a non-techie like me and no risk of losing any emails in the process 🙂
    Thank you.

  9. I am on High Sierra 10.13.6 and my computer just locks up while I am composing an email. It was doing this originally once a fortnight then weekly, now daily and multiple times daily. I have to do a hard restart as I cant do anything when it locks. Neither the keyboard or the mouse will work.
    This is a mac that I purchased around 8 months ago second hand.

    I dont have this at all – /Library/Preferences/mail
    I also dont have /Library/Mail/V5/MailData

    Can you offer any help please?

    1. @Karen that’s odd – you should also have the /V5/MailData folder on High Sierra. Are you sure your are looking inside the ~/Library/-folder of your User & not the macOS System?

      There’s a slight difference:
      For the User: /Users/YourUser/Library/Mail/ (or short: ~/Library/Mail/)

      From macOS central system (or basically saying „for ALL users“):
      /Volumes/YourHarddrive/Library/Mail/

      You need the first one – only for your current User.

Questions? Suggestions? Let us know with a comment!

This site uses Akismet to reduce spam. Learn how your comment data is processed.