in reply to MS Exchange?

Yes, Exchange (at least as configured at my office) supports IMAP. I have a script that runs on a Sun box and uses Mail::IMAPClient to read mail from various folders on our Exchange server.