Can anyone recommend or point me to a way to load the contents of a binary stream into an Outlook message (or some other structure)? I need a way to access a message's attachments.
The current solution is disgusting as it requires Outlook to be running on the server. It saves the binary message to disk, opens it in Outlook, saves the attachments to disk then opens them for use.
Ideally, I would like to parse the raw binary stream and grab the attachments. However, this is unpredictable because I use the tag "octet-stream" to demarcate the beginning of the attachments and this doesn't appear once the email has been modified or forwarded.
Thanks for any advice.