How do i find out if the outlook mail is digitally signed

G

Gautam

Hi,

I am creating an outlook plugin using VC++.


I basically want to know whether the mail item that i have is digitally

signed or not


I am unable to do this using the MessageClass property of the mailitem
object, since the value returned for both signed and unsigned mails is
"IPM.Note"


I had read somewhere that we can not find whether the mail is digitally

signed or not by looking at the messageclass of the mailitem object.


Can anyone please guide me to some way of differentiating between
signed and unsigned mails?


thanks,
Gautam
 
D

Dmitry Streblechenko

Outlook goes out of its way to present encrypted/signed messages as regular
MailItem objects. Even if you read its MAPIOBJECT property, it will return a
fake IMessage MAPI object rather than a native IMessage from teh store
provider.
The only workaround that I am aware of is to reopen the message using
MAPI/CDO 1.21/Redemption bypassing the Outlook Object Model and then look
at the message class.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top