从二进制流加载Outlook消息? [英] Loading an Outlook message from a binary stream?

查看:117
本文介绍了从二进制流加载Outlook消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以向我推荐或指出一种将二进制流的内容加载到Outlook消息(或其他结构)中的方法吗?我需要一种访问邮件附件的方法.

当前的解决方案令人厌恶,因为它要求Outlook在服务器上运行.它将二进制消息保存到磁盘,在Outlook中将其打开,将附件保存到磁盘,然后将其打开以供使用.

理想情况下,我想解析原始二进制流并获取附件.但是,这是不可预测的,因为我使用标签"octet-stream"来标定附件的开头,并且在电子邮件被修改或转发后就不会出现.

感谢您的任何建议.

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.

推荐答案

您使用哪种二进制格式将附件保存到磁盘?
从codeplex检出mfcmapi以获得示例代码,以读取不带Outlook的消息.
Which binary format are you using to save the attachments to the disk?
Check out the mfcmapi from codeplex for sample code to read the messages without outlook.


这篇关于从二进制流加载Outlook消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆