"On my Mac" folders - Emails disappeared, folder shrunk

After having moved a large number of emails from an IMAP server to a local "on my Mac" folder, I started having issues reading those emails. I thus decided to follow commonly suggested advice, so I:


  • Rebuilt the folders (through the menu "Mailbox" > "Rebuild")
  • And I also repaired the index files by deleting and rebuilding the "Envelope index" files (as explained e.g. here)


Suddenly, however, my two folders that I had under "On my Mac" have shrunk dramatically! (From 11000+ messages to 143 in one folder, and from12000+ to 701 messages in the other folder).


Unfortunately, this does not seem to be just a problem of indexing emails. Those emails seem to have physically disappeared! If I look into the library (under ~/Library/Mail/V7/***long alphanumeric code***/***name of the folder***.mbox) and check the size of the respective mbox folders, these mbox folders are now a few MB large, while before they were several GB large.


Is there any sense to recover what was there before?


And, since this whole set of problems started when moving this large number of email messages from an IMAP server to "On My Mac" — is there a better, safer way to perform this operation, rather than just manually dragging the messages from one location to the other one?

MacBook Pro 13", macOS 10.15

Posted on Jan 16, 2020 9:25 AM

Reply

Similar questions

2 replies

Jan 20, 2020 8:37 AM in response to raina_b22

Hi Becky,


thank you. Yes, thanks -- fortunately, I do have a Time Machine backup, and I can restore the box folder from there. Will do. But the question I had is more about "how can this happen".


I am puzzled as to why, after performing these two simple "fixes" commonly suggested, namely:


  • rebuilding the folder
  • deleting the "envelope index" files


a locally saved folder could shrink so much. To give you a sense of what happened (thanks to the Time Machine copy, I can compare exactly the before/after versions):


  • Before, I have 11,000+ messages and ~3 GB worth of messages in that local folder (visible as .mbox under ~/Library/Mail/V7/)
  • Afterwards, I had 143 messages and a few MB disk space for the .mbox folder


I am simply puzzled and, to be honest, terrified that a locally saved folder full of emails can shrink when rebuilding it, and do not understand why.

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.

"On my Mac" folders - Emails disappeared, folder shrunk

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