mail keeps crashing on imap account,

recreate account works for a few days then crashes again

Crashed Thread: 6 Dispatch queue: NSOperationQueue 0x6000002d28a0 :: NSOperation 0x6000004cf730 (QOS: LEGACY)



Exception Type: EXC_CRASH (SIGABRT)

Exception Codes: 0x0000000000000000, 0x0000000000000000



Application Specific Information:

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Require mailbox name to create IMAPMailbox for (null)'

abort() called

terminating with uncaught exception of type NSException


Same account same parameters work with Thunderbird.

MacBook Pro (15-inch Mid 2010), OS X Yosemite (10.10)

Posted on Oct 27, 2014 2:52 PM

Reply
13 replies

Oct 27, 2014 7:06 PM in response to Gilles220

Back up all data before proceeding.

1. Triple-click anywhere in the line below on this page to select it:

~/Library/Mail/Bundles

Right-click or control-click the highlighted line and select

Services Open

from the contextual menu.* A folder may open, or you may get an error message that the item can't be found. Either result is normal. If the folder does open and has contents, move the contents to the Desktop. Relaunch Mail and test. If there's no change, put the contents of the folder back and quit Mail again.

2. Repeat with this line:

/Library/Mail/Bundles

This time you may be prompted for your administrator login password when you remove the items. Make sure they're removed from the folder and not just copied to the Desktop. If necessary, copy them first and then move the originals to the Trash.

*If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination command-C. In the Finder, select

Go Go to Folder...

from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

Oct 31, 2014 7:23 AM in response to Gilles220

How many IMAP e-mail accounts do you have? You could try to disconnect all them via Preferences Panel -> Internet Account and try to open again Mail. If Mail doesn't crash close it, go back to Preferences Panel -> Internet Account activate the first account and open again Mail. Probably when you'll enable the "corrupted" account Mail will crash again. Let me know if it happens to you. Thank you.


Michele

Nov 5, 2014 9:32 PM in response to michelegravina

I've got just the same issue with one of my imap mailboxes. After deleting my account psn@nm.ru, all the others start to work fine.

When the "corrupted" psn@nm.ru is added, occasionally in few hours or days I get the same crash as discussed above:


Crashed Thread: 12 Dispatch queue: NSOperationQueue 0x6180000df790 :: NSOperation 0x6180000d9280 (QOS: LEGACY)


Exception Type: EXC_CRASH (SIGABRT)

Exception Codes: 0x0000000000000000, 0x0000000000000000


Application Specific Information:

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Require mailbox name to create IMAPMailbox for (null)'

abort() called

terminating with uncaught exception of type NSException


OS X 10.10 Yosemite, Macbook Pro 15" Late 2013


I found neither ~/Library/Mail/Bundles nor /Library/Mail/Bundles folders on my Macbook.

Nov 6, 2014 1:05 AM in response to Sergey Pastukhov

Mail, if your mac is off line, save what you do to an account IMAP in a file called

operations

in


/Users/youraccountname/Library/Mail/V2/IMAP-your@email.address/.OfflineCache


When your Mac is on line Mail reads the file operations and update the server IMAP... Probably this file is written incorrectly and when Mail try to read it, it crashes.


Try to delete all files, operations included, you'll find in .OfflineCache and restart Mail.


Waiting Apple writes a patch for Mail....


Michele

Nov 29, 2014 12:27 AM in response to Jakob1233

you probably did not read the start of this thread and with it the explanation of this problem. Deleting the account will help, but only for as long as it takes to re-sync the IMAP folders. This is exactly what is happening when you delete .OfflineCache; this is definitely not a fix, not even a workaround. Because if you have a very small or even empty inbox, Mail.app will crash faster than you can delete .OfflineCache.

Dec 13, 2014 7:05 PM in response to Gilles220

Crashes for me the moment I click anything -- folder, mailbox, what have you. It doesn't seem to be an IMAP issue because all accounts are disabled, and deleted the cache files as well. My error is a bit different: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSTaggedPointerString rangeOfCharacterFromSet:options:range:]: nil argument' abort() called terminating with uncaught exception of type NSException

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.

mail keeps crashing on imap account,

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