I’m attempting to get better my Apple Mail inbox on macOS Yosemite (Mail v8) after a sequence of occasions precipitated all messages to vanish from the appliance, despite the fact that the uncooked recordsdata are nonetheless current on disk.
What occurred
-
The Inbox was by accident deleted on an iPhone, which eliminated the IMAP messages from the server.
-
On my MacBook (offline at that second), the emails have been nonetheless current regionally inside Apple Mail.
-
I attempted to maneuver the messages from the IMAP Inbox into a neighborhood “On My Mac” mailbox to save lots of them.
-
Throughout this transfer, the Mac ran out of disk house.
-
The transfer operation aborted, and afterwards the unique Inbox inside Apple Mail appeared fully empty.
-
Nevertheless, on the filesystem, the uncooked (emlx and Attachments) mail recordsdata nonetheless exist.
The place the recordsdata are positioned
The messages are saved in Apple Mail’s IMAP native cache at:
~/Library/Mail/V2//INBOX.mbox/
with a construction like:
INBOX.mbox/
└── /
└── Information/
└── 0/
└── 1/
├── Messages/
└── Attachments/
└── 2/
└── 3/
... (many extra)
Inside these varied Messages folders there are literally thousands of:
*.emlx
*.emlxpart
*.partial.emlx
What I’m seeing
-
Every .emlx file has a standard file dimension (for instance a number of KB or extra).
-
However after I open them instantly on macOS, they seem empty in Apple Mail and present no message textual content.
-
If I manually rename an .emlx file to .eml and open it on Home windows or in one other mail program, the message content material is totally seen.
-
So the file content material remains to be there, Apple Mail simply refuses to show it.
Present state
-
I now have loads of free disk house once more.
-
I nonetheless have your complete authentic INBOX.mbox folder.
-
Apple Mail refuses to indicate or rebuild the messages.
-
Rebuilding the Mail index (Envelope Index* recordsdata) didn’t assist.
-
The information clearly exists within the .emlx, however Apple Mail doesn’t see it.
My query
How can I restore the mailbox in order that Apple Mail acknowledges and shows the messages once more?
I wish to both:
-
rebuild the unique IMAP Inbox regionally in Apple Mail,
-
or recreate a sound native mailbox from the .emlx recordsdata,
-
or convert this construction into a correct .mbox file Apple Mail can import.
At this level I merely need a clear mailbox (native or mbox export) so I can later add the messages to the IMAP server once more.
Further notes
macOS: Yosemite
Mail.app model: 8
IMAP account
No Time Machine backup
Subject began after the disk ran out of house throughout a transfer from IMAP to native mailbox
The uncooked recordsdata nonetheless include the true message knowledge (verified by renaming to .eml)

