mail index corruption

Need help on this.


Wife's MacBook Pro with OS 10.6.8 was giving a lot of mail trouble: not connecting with ISP, freezing, and just general contankerous. We tried several thing such as permissions, defrag, and diskwarrior, etc.


We then upgraded to10.8.4 but still have a problem with mail. Mail opening process finds at attempts to import saved mail data but final window warning states mail index error. Next window states quit and reopen Mail to fix indexing.


We have an Index.sproduct in the Mac OS X Install Data. According to the file info, it was created when we installed OS 10.8.4.


Problem is that that does not happen. Still cannot open Mail 6.5.

Mac Pro (Mid 2012), OS X Mountain Lion (10.8.2), Other Mac's linked to Airport

Posted on Jul 13, 2013 9:57 AM

Reply
4 replies

Jul 15, 2013 12:27 PM in response to budspwr

Hi budspwr,


I found some steps to reindex Mail's messages that may help:


Mail (Mountain Lion): Reindex messages

http://support.apple.com/kb/PH11704

  1. Quit Mail if it’s open.
  2. In ~/Library/Mail/V2/MailData, delete any file that begins with “Envelope Index,” such as Envelope Index or Envelope Index-shm.Your home Library folder is hidden by default. To display it, choose Finder > “Go to Folder” and then enter “~/Library.”
  3. Open Mail.Mail creates new Envelope Index files. This process may take a few minutes, depending on how many messages Mail is reindexing.

Cheers!

- Ari

Oct 21, 2014 12:50 AM in response to budspwr

Out of interest to everyone, it's great to know the solution to this problem is readily available.

I had this problem with an iMac when upgrading from 10.6.8 to Yosemite.


I must have tried 6 times to do this rebuild/reindex without success until...


- I found I had files stored in 2 places : /mail and v2/maildata

For me it was necessary to:

1. Remove all the imap accounts from both places

2. Remove envelope index and associated files as explained elsewhere from both places.


Once that was done, hey presto! It rebuilt very quickly.

Thanks to everyone who takes time to contribute. When it's all going pear-shaped these discussion help enormously.


These two conversations helped me also:

http://osxdaily.com/2013/08/01/rebuild-mailbox-reindex-messages-mail-mac-os-x/

https://discussions.apple.com/thread/1427197?start=0&tstart=0

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

mail index corruption

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.