To solve the issue of the error when deleting a message, you need to fix the maping as explained in http://config.practicalhost.com
Launch the Mail app. Your email should appear within a few minutes, depending on the amount of items to sync.
Within the "Mail, Contacts, Calendars" settings window, select the account that you just added
Under "IMAP", select your Account.
Within the accounts settings, select "Advanced":
- You should now be at the screen below:
Under "MAILBOX BEHAVIORS", select the first item ("Drafts"), then select the appropriate folder under "ON THE SERVER".
Here's an example for the Drafts folder:
Now repeat this step for "Sent Mailbox" and "Deleted Mailbox". Ignore the "Archive Mailbox", it won't be used.
Last step! Make sure "Deleted Mailbox" is selected under "MOVE DISCARDED MESSAGES INTO". This will ensure deleted messages go to the Deleted Mailbox folder
That's it! You should be all set now! Enjoy your email.