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

  • Thread starter Thread starter Gautam
  • Start date Start date
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
 
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
 
Back
Top