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

Mail 5 (OSX Lion) does not work after mailbox migration

Mail is not working in Lion.


After the mail data migration finishes the message window does not appear.

I've tried deleting the data files from Library/Mail, copying my backup data and restarting the data migration. Also tried disabling all bundles and deleting the Evnvelope* files in /MailData.


Anyone suffering from the same? Any ideas? Thanks


----------------------

I get the following exception in the console


21/07/2011 11:31:00.816 Mail: *** -[NSSet initWithArray:range:copyItems:]: array argument is not an NSArray

21/07/2011 11:31:00.817 Mail: (

0 CoreFoundation 0x00007fff8eb48986 __exceptionPreprocess + 198

1 libobjc.A.dylib 0x00007fff937d9d5e objc_exception_throw + 43

2 CoreFoundation 0x00007fff8eb22f94 -[NSSet initWithArray:range:copyItems:] + 196

3 CoreFoundation 0x00007fff8eb22ec9 -[NSSet initWithArray:] + 57

4 Message 0x00007fff929f0991 -[SmartMailboxUnreadCountManager smartMailbox:didInitializeWithDictionaryRepresentation:] + 98

5 Message 0x00007fff929f0145 -[MailboxUid initWithDictionaryRepresentation:] + 1152

6 Message 0x00007fff929effdb -[MailboxUid initWithDictionaryRepresentation:] + 790

7 Mail 0x0000000100ffd765 Mail + 34661

8 Mail 0x0000000100ffcd90 Mail + 32144

9 Mail 0x0000000100ffc9f6 Mail + 31222

10 Mail 0x000000010107b514 Mail + 550164

11 Mail 0x0000000101090f24 Mail + 638756

12 CoreFoundation 0x00007fff8eb3a90c __invoking___ + 140

13 CoreFoundation 0x00007fff8eb3a7a4 -[NSInvocation invoke] + 132

14 Message 0x00007fff929ee047 -[MonitoredInvocation invoke] + 196

15 Message 0x00007fff929ca891 -[ThrowingInvocationOperation main] + 33

16 Message 0x00007fff929ca837 -[_MFInvocationOperation main] + 449

17 Foundation 0x00007fff8a0400b0 -[__NSOperationInternal start] + 705

18 Foundation 0x00007fff8a0533d2 ____NSOQSchedule_block_invoke_2 + 124

19 libdispatch.dylib 0x00007fff8745590a _dispatch_call_block_and_release + 18

20 libdispatch.dylib 0x00007fff874567e9 _dispatch_worker_thread2 + 255

21 libsystem_c.dylib 0x00007fff8c9153da _pthread_wqthread + 316

22 libsystem_c.dylib 0x00007fff8c916b85 start_wqthread + 13

)

Posted on Jul 21, 2011 3:34 AM

Reply
21 replies

Jul 21, 2011 8:16 PM in response to take_the_shot

I had exactly the same problem. I could not even open Mail > Preferences...


Out of desparation I had to reset my mail entirely:


Delete ~/Library/Preferences/com.apple.mail.plist

Move ~/Library/Mail folder to another place.


Mail then restarts and you can reenter all your settings to get it working.


However, when I tried to import my old Mail messages, it seemed to hang early in the process.


This is clearly not the ideal way to solve the issue but I needed mail access.

Dec 15, 2011 1:43 PM in response to Alejandro M. Ramallo

This same thing happened today when migrating a friend's laptop.


THE SOLUTION:


Inside the Library folder (Lion hides this folder now, so hold down the option key and use the Go menu in the finder — Library will appear in the menu. Go there.) you'll find the Mail folder. Inside the mail folder was another folder called V2. I simply took the contents of V2 and dragged them to the parent folder (Mail).


When I launched mail again, everything was back to normal. As Apple says, "It's that simple!"

Jul 12, 2012 7:03 PM in response to Alejandro M. Ramallo

When I had this problem originally, I called Apple support. Their solution was to remove all the 'interesting' files from the Library/Mail folder (including the V2 folder and its files) and import all the mailboxes manually. This would have worked but taken an eternity (>50 mailboxes, >100,000 messages), plus recreating rules, etc.


So I started experimenting. The critical files that made Mail not start up correctly were the SmartMailboxes plists (SmartMailboxes.plist, VersionedSmartMailboxes.plist). I deleted them (and their backups) and Mail started up OK. I put them back, Mail failed to start up. (Tried all that after Mail had transitioned all the old mail to V2 but hadn't successfully started up.)


So I cleared my Mail folder, reinstalled it from backup, removed SmartMailbox plists, and started up Mail. Imported everything just fine (except the old MailTags plugin of course), started up normally. Very Happy now.

Jan 21, 2013 11:28 PM in response to macmrjohn

macmrjohn wrote:


This same thing happened today when migrating a friend's laptop.


THE SOLUTION:


Inside the Library folder (Lion hides this folder now, so hold down the option key and use the Go menu in the finder — Library will appear in the menu. Go there.) you'll find the Mail folder. Inside the mail folder was another folder called V2. I simply took the contents of V2 and dragged them to the parent folder (Mail).


When I launched mail again, everything was back to normal. As Apple says, "It's that simple!"



This same solution works for Mountain Lion as well. Thanks so much!

Mail 5 (OSX Lion) does not work after mailbox migration

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