Help! Mail error: Couldn't load body for LibM{181076:GmailId15275081a34002f9:We*:2016-01-24 14:06:51 EST}

How do I fix this issues? It don't happen every time - but when I go to move a email to a mailbox some times I get this message......Couldn't load body for LibM{181076:GmailId15275081a34002f9:We*:2016-01-24 14:06:51 EST}

Got any ideas what is going wrong?

Thanks for your help!!

MacBook Pro, iOS 9.2.1

Posted on Jan 28, 2016 6:25 AM

Reply
10 replies

Jan 6, 2017 5:25 AM in response to escheetz76

Hi,

I manage a number of apple computers of my colleagues and recently stumbled over a problem that looked like yours (On a MacBookPro with OSX Sierra). Some mails couldn't be moved to another folder and a message were displayed stating:

Couldn't load body for LibM(268865:34522:...

or similar. In a terminal, I looked up the emlx file in the mail folder:

mdfind 268865

and realized the file was named:

268865.partial.emlx

Mail showed the message correctly, but I couldn't move it. Now I simply renamed the file by removing the .partial part, so the file now read:

268865.emlx

Voila, now I was able to move the message in Mail!

So I went and batch renamed all messages in that inbox:

cd <some uuid>/INBOX.mbox/<some other uuid>/Data

find . -name "*.emlx" -exec rename -s .partial "" {} +

That's it. rename is a Perl-based utility and can be installed with homebrew.

Hope it helps.

Dec 28, 2017 9:04 PM in response to escheetz76

I recently had this problem "Mail error: Couldn't load body for LibM" when I recovered a batch of Mail messages from Time Machine to my Apple Mail. Because of this error, it was impossible to move the recovered mail messages with attachments into the desired mailbox on my Mac (recovered mail without attachments presented no problem).


The problem emails indeed all had "partial" in their names, e.g. 95030.partial.emlx When I renamed the files to remove "partial" from the name, the problem disappered and the mail messages and attachments were correct and useable.


I found the folder where the problem mail messages were using the "mdfind" technique described by olli_x elsewhere in this thread:

mdfind 95030

Once I set terminal to the folder with one problem email I was then able to find all the problem mail messages using this:

ls -l *partial.emlx

I found that I could not change the names of those files due to an ACL entry which prevented everyone from changing the file. If the first command below shows an ACL entry, then the second command will remove it:

ls -le *partial.emlx

chmod -N *partial.emlx

Having done that, this line will find all the problem mail messages, and rename them without "partial".

find . -iname "*partial*" | sed -e 'h;s/\.partial//;x;s/\./mv \./;G;s/\n/ /' | sh

If you want to check what this command does, run it with out the "| sh" at the end, and it will generate the list of cammands that will be executed (without executing them). It should be a list of "mv" commands, renaming each file, e.g. "mv 95030.partial.emlx 95030.emlx"

Dec 28, 2017 9:30 PM in response to ericnepean

A better version of the last terminal command:

find . -iname "*partial*" | sed -e 'h;s/\.partial//;x;s/^/mv /;G;s/\n/ /' | sh

If you want to check what this command does, run it with out the "| sh" at the end, and it will generate the list of cammands that will be executed (without executing them). It should be a list of "mv" commands, renaming each file, e.g. "mv ./95030.partial.emlx ./95030.emlx"

May 7, 2016 2:18 PM in response to escheetz76

I have the same problem. I just upgraded from 10.8 to 10.11.


I use POP for all my email accounts, and keep all messages in mailboxes on my computer. (I have many of them, with rules to move messages to the appropriate mailbox. I don't use Gmail. I have accounts a apple.com, verizon.net, an account that forwards to verizon.net, and multiple accounts on my domain's mail server.

I have never seen this problem before, but I have it for a large number of messages that I would like to move to a different mailbox. This problem was driving me crazy, because my rules that moved messages to a mailbox weren't working and I couldn't figure out why. (Wasted a lot of time experimenting.) Also, as soon as I upgraded I noticed that most of my messages, whether from before I upgraded or not, have blank bodies in the message viewer, but have the correct message body when the message is opened.


Furthermore, exporting a mailbox with 1000 messages and importing it brought in 24 messages. Apparently messages without bodies don't get exported.


This is a huge problem for me. This has nothing to do with Gmail.

May 7, 2016 2:58 PM in response to MLModel

No way to edit a post, apparently. I have this to add:


Clarification: I'm talking about there Apple Mail Application.


Rebuilding a mailbox with missing-body messages simply deletes those messages, leaving you much worse off then before. I'm going to restore my mail from backup and just live with the problem of missing bodies in the viewer and rules not being applied to messages without bodies.

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.

Help! Mail error: Couldn't load body for LibM{181076:GmailId15275081a34002f9:We*:2016-01-24 14:06:51 EST}

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