I am able to log into yahoo mail from safari. When i try to set up mail, i get "Logging in to the Yahoo! IMAP server “imap.mail.yahoo.com” failed. Make sure the user name and password you entered are correct..."
Here you go:
Instructions are for Lion but it is working for me with Mountain Lion.
Retrieving data ...