How to tell if a mail is encrypted or not.

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
 
K

Ken Slovak - [MVP - Outlook]

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
 

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