How to tell if a mail is encrypted or not.

  • Thread starter Thread starter Andy Yu
  • Start date Start date
A

Andy Yu

Hi,
I'm looping through the MailItems in my inbox and redirecting them to
several other addresses.
I want handle encrypted mails differently.
How can I tell if an email is encrypted or not? Don't seem to find anything
on the MailItem object.

Anyone have a hint?

Thanks in advance!

/Andy
 
If Item.MessageClass = "IPM.Note.SMIME" or you can check the named
property ContentType which would begin with something like
"application/x-pkcs7-mime". You would need to use CDO or Extended MAPI
or Redemption to get at the named property though.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Lead Author, Beginning VB 6 Application Development, Wrox Press
Attachment Options
http://www.slovaktech.com/attachmentoptions.htm
Extended Reminders
http://www.slovaktech.com/extendedreminders.htm
 
Back
Top