An IMAP client does not automatically download and delete messages like POP. In fact, one of the advantages of IMAP is that you can leave the messages on the mail server and view them in your IMAP client
If you accidentally configured your hotmail account on your imac for POP it might have downloaded and deleted your messages from the server. Have you looked in your hotmail account on your imac for the messages?
-Rick