Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / September 2003

Tip: Looking for answers? Try searching our database.

How to tell if a mail is encrypted or not.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andy Yu - 27 Sep 2003 23:01 GMT
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
Ken Slovak - [MVP - Outlook] - 29 Sep 2003 16:31 GMT
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

> Hi,
> I'm looping through the MailItems in my inbox and redirecting them to
[quoted text clipped - 8 lines]
>
> /Andy
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.