如何在C#中读取签名的Outlook消息文件正文文本

问题描述:

Hai,



我们有像文档预览这样的要求。在那些,我们还需要在预览窗格中显示Outlook消息文件(.msg)正文文本。为此我已使用以下链接从Codeproject文章中获取代码用C#读取Outlook MSG文件。 [ ^ ]



使用上面的代码,我可以显示.msg文件的正文。但是如果.msg文件是数字签名的,那么.msg文件的BodyText(纯文本和Rtf类型文本)就会变空。



1)如何查找天气这个.msg文件是否已签名?



2)如何获取已签名的.msg文件正文?



请帮助我这方面我是这类新手一次。



谢谢。

Hai,

we have a requirement like document preview. In those, we also need to show outlook Message files(.msg) Body text as like in preview pane.For that i have taken the code from Codeproject article using following link Reading an Outlook MSG File in C# .[^]

Using the above code i can able to show the body of the .msg file. But if the .msg file is Digitally signed then the BodyText (plain text and Rtf type text) of the .msg file comes Empty.

1)how to find weather this that .msg file is signed or not ?

2) How to get the signatured .msg file body text?

Please help me in this regard i am new to this type of once.

Thank you.