the iCloud IMAP server "p01-imap.mail.me.com" rejected the password for user xxxxxx

Solution 1:

It should be in the format p01-imap.mail.me.com, it looks like your missing the 'mail' part.

enter image description here