I'm writing a program to automatically read then delete .eml files in an Exchange public folder, lets call it Public Folders/MyFolder. If a .eml file is present it reads the contents of the email and then deletes it, then checks if there's another one etc. There is no Outlook installed and the machine will be logged off (so it's all running as a service), hence mapi.logon may not work as well. I've got the sending of emails working well by using CDO objects and would like to be consistent and so use these for the reading/deletion too. 99% of code samples I've found on the web relate to sending emails and not reading them.
I'm using VB6 but frankly it could be any language, it's the manipulation of the CDO objects (or whatever stuff I end up using that's important). I'm tearing my hair out on this one.