ICloud – Unable to set up iCloud email on mail.app after accidentally deleting the ~/Library/Mail/ folder

emailicloudmail.app

I accidentally deleted the Mail folder (at /Library) that contained a few sub-folders including one called V2. I did that hoping to do a fresh configuration of my iCloud and Live accounts.

However, when I tried reopening mail.app, it wouldn't restore the said folder. It does prompt me to configure a mailbox which I do, selecting iCloud in my System Preferences window but the mailbox still doesn't appear! The preferences menu option of mail.app is also disabled. Please advise if anything can be done to get it back to normal without a system reinstall!

Here are some screenshots to illustrate the problem:

This is the first screen I get when opening Mail.app
This is the first screen I get when opening Mail.app

Then I select the first option to set up my iCloud account
Then I select the first option to set up my iCloud account

On the next screen, I check the Mail option and hit Add Account
On the next screen, I check the Mail option and hit Add Account

After all this, my ~/Library/Mail/V2 folder still looks like this (no mailbox created)
After all this, my ~/Library/Mail/V2 folder still looks like this (no mailbox created)

And the Preferences menu option in Mail.app is still disabled
And the Preferences menu option in Mail.app is still disabled

Here's a Console dump:
Here's a Console dump:

Best Answer

Instead of selecting "iCloud" when adding the account, try "Add Other Mail Account..." and follow the configuration steps. Repost from comment for thread closure.