You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

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

Yosemite Mail freezes when importing mailboxes

Dear all,


I just updated my Mac to Yosemite. I did a fresh install (erased disk and then restore documents and data with Time Machine) and installed all updates. Everything is working flawlessly except Mail. I can't make it run. Every time I opened it said that will import the mails, and a window appears and start the process. Yet, it does not go beyond there. I even leave my Mac for a whole night, and never went any further from the screen "preparing to import messages".


Does amy body knows a fix for this issue?


Thanks for any help!

MacBook Pro, OS X Yosemite (10.10.1)

Posted on Dec 8, 2014 7:48 PM

Reply
Question marked as Top-ranking reply

Posted on Dec 8, 2014 8:56 PM

The new version of Mail stores its database in a different format than the old one, so the database has to be converted before Mail can use it. Sometimes the conversion fails because the old database is corrupt. The easy way to recover is to discard the old database and start afresh. You can do that without losing any messages, provided that:

☞ All your incoming mail accounts are on an IMAP or Exchange server

☞ You store sent messages on the server

☞ You don't have any "On My Mac" mailboxes

Most well-known independent mail services such as iCloud and Gmail are based on IMAP. On the other hand, ISP-hosted mail services almost always use POP. If your ISP is one of your mail service providers (or the only one), you probably can't use this procedure. Ask for further instructions in that case.

If you know that the conditions above are satisfied, continue as follows.

Quit Mail if it's running. Back up all data.

Open the Library folder in your home folder by holding down the option key and selecting

Go Library

from the Finder menu bar. Inside it is a subfolder named "Mail." Move that folder to the Desktop. You're not moving the Mail application; you're moving a folder named "Mail."

Open the Internet Accounts pane in System Preferences and recreate your mail accounts other than iCloud with the same settings as before. To recreate an iCloud mail account, all you have to do is open the iCloud preference pane and check the box marked Mail.

Launch Mail. If all goes well, your mailboxes should be restored automatically. The messages will be downloaded from the servers, so it may take a long time if you have very large mailboxes. Some people have mailboxes in the gigabyte range, and that may be a problem if your bandwidth usage is metered.

If the mailboxes are created successfully, you can delete the folder you moved to the Desktop. You may have to recreate your Mail rules, signatures, and custom stationery. If it's very important to you not to have to do all that, ask for instructions before deleting the folder.

5 replies
Question marked as Top-ranking reply

Dec 8, 2014 8:56 PM in response to crpp

The new version of Mail stores its database in a different format than the old one, so the database has to be converted before Mail can use it. Sometimes the conversion fails because the old database is corrupt. The easy way to recover is to discard the old database and start afresh. You can do that without losing any messages, provided that:

☞ All your incoming mail accounts are on an IMAP or Exchange server

☞ You store sent messages on the server

☞ You don't have any "On My Mac" mailboxes

Most well-known independent mail services such as iCloud and Gmail are based on IMAP. On the other hand, ISP-hosted mail services almost always use POP. If your ISP is one of your mail service providers (or the only one), you probably can't use this procedure. Ask for further instructions in that case.

If you know that the conditions above are satisfied, continue as follows.

Quit Mail if it's running. Back up all data.

Open the Library folder in your home folder by holding down the option key and selecting

Go Library

from the Finder menu bar. Inside it is a subfolder named "Mail." Move that folder to the Desktop. You're not moving the Mail application; you're moving a folder named "Mail."

Open the Internet Accounts pane in System Preferences and recreate your mail accounts other than iCloud with the same settings as before. To recreate an iCloud mail account, all you have to do is open the iCloud preference pane and check the box marked Mail.

Launch Mail. If all goes well, your mailboxes should be restored automatically. The messages will be downloaded from the servers, so it may take a long time if you have very large mailboxes. Some people have mailboxes in the gigabyte range, and that may be a problem if your bandwidth usage is metered.

If the mailboxes are created successfully, you can delete the folder you moved to the Desktop. You may have to recreate your Mail rules, signatures, and custom stationery. If it's very important to you not to have to do all that, ask for instructions before deleting the folder.

Dec 8, 2014 9:49 PM in response to Linc Davis

Hi Linc, thanks so much for your helpful reply. I have one Exchange and one IMAP account, but I also have one POP, and as you said in one of the conditions: ¨ You don't have any "On My Mac" mailboxes¨... unfortunately, that one have mails stored and no longer available to re-download, and I don't want to loose those. Is there a way to fix Mail accounts and messages and recover those messages as well?


Cheers,


Cesar.



Dec 8, 2014 10:04 PM in response to crpp

Launch the Console application in any of the following ways:

☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)

☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.

☞ Open LaunchPad. Click Utilities, then Console in the icon grid.

The title of the Console window should be All Messages. If it isn't, select

SYSTEM LOG QUERIES ▹ All Messages

from the log list on the left. If you don't see that list, select

View ▹ Show Log List

from the menu bar at the top of the screen. Click the Clear Display icon in the toolbar. Then launch Mail. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.

The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.

Please don't indiscriminately dump thousands of lines from the log into this discussion.

Please don't post screenshots of log messages—post the text.

Some private information, such as your name, may appear in the log. Anonymize before posting.

Dec 8, 2014 11:12 PM in response to Linc Davis

Dear Linc, here is the requested information...


9/12/2014 5:56:51.984 pm com.apple.xpc.launchd[1]: (com.apple.imfoundation.IMRemoteURLConnectionAgent) The _DirtyJetsamMemoryLimit key is not available on this platform.

9/12/2014 5:56:52.046 pm bird[302]: Assertion failed: ![_xpcClients containsObject:client]

9/12/2014 5:56:52.046 pm bird[302]: Assertion failed: ![_xpcClients containsObject:client]

9/12/2014 5:56:52.374 pm bird[302]: Assertion failed: ![_xpcClients containsObject:client]

9/12/2014 5:57:41.957 pm Mail[1593]: Error reading table of contents file from /Users/cesar/Library/Mail/V2/Mailboxes/Recovered Messages (utas.edu.au).mbox/table_of_contents: Error Domain=NSCocoaErrorDomain Code=260 "The file “table_of_contents” couldn’t be opened because there is no such file." UserInfo=0x608000276300 {NSFilePath=/Users/cesar/Library/Mail/V2/Mailboxes/Recovered Messages (utas.edu.au).mbox/table_of_contents, NSUnderlyingError=0x608000051eb0 "The operation couldn’t be completed. No such file or directory"}

9/12/2014 5:57:41.990 pm Mail[1593]: Error reading table of contents file from /Users/cesar/Library/Mail/V2/Mailboxes/Sent Messages (FCD).mbox/table_of_contents: Error Domain=NSCocoaErrorDomain Code=260 "The file “table_of_contents” couldn’t be opened because there is no such file." UserInfo=0x618000271b00 {NSFilePath=/Users/cesar/Library/Mail/V2/Mailboxes/Sent Messages (FCD).mbox/table_of_contents, NSUnderlyingError=0x6180000568f0 "The operation couldn’t be completed. No such file or directory"}

9/12/2014 5:57:41.999 pm Mail[1593]: Error reading table of contents file from /Users/cesar/Library/Mail/V2/Mailboxes/Deleted Messages.mbox/table_of_contents: Error Domain=NSCocoaErrorDomain Code=260 "The file “table_of_contents” couldn’t be opened because there is no such file." UserInfo=0x608000660b40 {NSFilePath=/Users/cesar/Library/Mail/V2/Mailboxes/Deleted Messages.mbox/table_of_contents, NSUnderlyingError=0x608000051e50 "The operation couldn’t be completed. No such file or directory"}

9/12/2014 5:57:42.060 pm Mail[1593]: Error reading table of contents file from /Users/cesar/Library/Mail/V2/EWS-name@owa.utas.email/Conversation History.mbox/table_of_contents: Error Domain=NSCocoaErrorDomain Code=260 "The file “table_of_contents” couldn’t be opened because there is no such file." UserInfo=0x60800027bb00 {NSFilePath=/Users/cesar/Library/Mail/V2/EWS-name@owa.utas.email/Conversation History.mbox/table_of_contents, NSUnderlyingError=0x6080002417d0 "The operation couldn’t be completed. No such file or directory"}

9/12/2014 5:57:42.068 pm Mail[1593]: Error reading table of contents file from /Users/cesar/Library/Mail/V2/EWS-name@owa.utas.email/Journal.mbox/table_of_cont ents: Error Domain=NSCocoaErrorDomain Code=260 "The file “table_of_contents” couldn’t be opened because there is no such file." UserInfo=0x600000270440 {NSFilePath=/Users/cesar/Library/Mail/V2/EWS-name@owa.utas.email/Journal.mbox/t able_of_contents, NSUnderlyingError=0x60000004e010 "The operation couldn’t be completed. No such file or directory"}

9/12/2014 5:57:42.221 pm Mail[1593]: Error reading table of contents file from /Users/cesar/Library/Mail/V2/EWS-name@owa.utas.email/Sync Issues.mbox/Server Failures.mbox/table_of_contents: Error Domain=NSCocoaErrorDomain Code=260 "The file “table_of_contents” couldn’t be opened because there is no such file." UserInfo=0x60800027d100 {NSFilePath=/Users/cesar/Library/Mail/V2/EWS-name@owa.utas.email/Sync Issues.mbox/Server Failures.mbox/table_of_contents, NSUnderlyingError=0x6080002588d0 "The operation couldn’t be completed. No such file or directory"}

9/12/2014 5:57:43.497 pm Mail[1593]: *** Assertion failure in -[MFIMAPAccount _IMAPMailboxForMailbox:name:createIfNeeded:], /SourceCache/Mail/Mail-1993/MailFramework/IMAP/MFIMAPAccount.m:1652

9/12/2014 5:57:43.497 pm Mail[1593]: An exception occurred during invocation of -[LibraryImportAssistant synchronouslyDoTheImport]

9/12/2014 5:57:43.498 pm Mail[1593]: Require mailbox name to create IMAPMailbox for <MFMailbox:0x7fb8a2d0ade0 (relative path=Archives/2011, attributes=0, displayName=2011 uuid=4DD296A2-C3DC-44C3-8639-067F5E63C17F)>

Yosemite Mail freezes when importing mailboxes

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