Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Moving local mailboxes from one Mac to another

I've got a bunch of .mbox mailboxes copied from one Mac (that was using Apple Mail). I copied the files out of the Mailboxes folder, in the ~/Library/Mail folder. I stuck it in the same locaiton on a new Mac. When I opened Mail.app, I saw the entire complicated folder structure, but every folder was empty. I tried rebuilding each folder, but that had no effect.


I then tried doing a more traditional import, but that doesn't work either. It starts importing but eventually Mail crashes before getting very far.


Here's the catch. It's are a ton of emails. Many many many subfolders, many many levels deep. Also the total amount of mail is very large. About 70 GB. So it's not so easy to run through these .mbox files, or even to simply duplicate them.


Is there some more straight forward way to do this the way I originally tried? Just moving the files into the mail storage folder, and having Mail.app "see" the mail? That way, I wouldn't have to import or duplicate the massive bunch of mail.

Posted on Feb 1, 2013 9:08 PM

Reply
29 replies

Feb 2, 2013 1:39 PM in response to l008com

Try this. Delete the ~/Library/Mail/ folder and replace it with the one from the older Mac. Boot into the newer Mac, run Mail, and let it update the Mail. That's all one should have to do. I routinely do that with Snow Leopard's Mail, so I can view it in ML's Mail. Works like gangbusters and no mucking around with copying, exporting, or importing.

Feb 3, 2013 2:18 PM in response to l008com

If they are standard .mbox files you have been using the right method, open Mail. select 'in mbox format' or Apple Mail (try both) select the file and import it. If this is what you are doing and Mail is crashing either the files are corrupted or Mail isn't working right. Any other Mac around so you can try another installation?

Feb 7, 2013 8:38 AM in response to l008com

There is a bug when doing “export mailbox” and import mailbox functionality.

Workaround:
> Open Finder and under the “Go” menu, hold down the option key. The “Library” sub-menu will show up.
> Copy the entire “Library > Mail” folder to a USB disk (it will not work if copying to a shared drive for some reason)
> Take the USB disk to the new computer and do an “Import Mailbox” and select the copied Data file. There will be LOTS of folders that come up for import, you can browse through and deselect what you don’t need (e.g. trash or junk mail), OR just import everything and then clean up from your mailbox.
> The imported folders will show up in mail under the “On My Mac” area.

Feb 7, 2013 8:43 AM in response to mypalbill

Doing this causes mail to crash after a few hours of importing. Remember this is 70 GB of mail data, so it's not like a normal 1 GB mailbox where we can throw it around and try it easily on different machines. The import does scan the folder and show a ton of items in the list like you say. But mail crashes partway through importing.


What about just putting the folders directly into the Mail library like I first tried. Shouldn't that work? They were local "on my mac" mailboxes on both computers, and both computers are running the same version of OS X. Shouldn't copying just the /Mail/V2/Mailboxes/ folder work? Is there a way to make it work? When I try that method, I get all of the mailbox folders and sub folders, but each and every one is empty. And rebuildling the mailbox finishes instantly and has no effect.

Feb 7, 2013 8:56 AM in response to l008com

Disregard, I found it. Not where I expected it. But alas exporting won't work for me anyway because if you'll recall, the real situation is that there were network accounts that got remade as real local accounts because the server was having significant login issues. So we had to kill the server and copy the data directly from the user account folders on the server. But none of this shoudl really effect what I'm trying to do. Ultimately, the mail should be stored in the mail folder in the same way whether it's a network account or a real local account, it should just be stored in a different location: on teh server instead of on the computer.

Moving local mailboxes from one Mac to another

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