Property for a message that is secured (encrypted)

D

Dick

Is there are property I can use to determine if an email has been
encrypted? Our exchange server has secure email capabilities and some
of my macros, which I use to move emails into particular folders, fail
when the email item has been 'secured'. Thanks

Dick
 
K

Ken Slovak - [MVP - Outlook]

Different ways of encrypting emails and different encryption software
produces different results but in essence what you want to do is to look at
the MessageClass of the email. A normal email will have a MessageClass of
"IPM.Note". A signed/encrypted message would have something like
"IPM.Note.Secure" or "IPM.Note.SMIME", often with other tags appended to
that. For example something like "IPM.Note.SMIME.MultipartSigned".

Examine the encrypted messages in your store to see what the MessageClass
property looks like to see what you should be testing for.
 
D

Dmitry Streblechenko

The only problem is that no matter what you do, Outlook always represents
such messages as a regular MailItem object with a message class of IPM.Note.
Even if you try to do MAPI through MAPIItem.MAPIOBJECT, Outlook will return
a fake IMessage with PR_MESSAGE_CLASS of IPM.Note.
The best you can do is use MAPI to call IMAPISession::OpenEntry using the
entry id retrieved from OOM to get the real IMessage.
If you are using MailItem.MAPIOBJECT, you can retreive PR_ICON_INDEX MAPI
property (*if* that property exists).

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

Dick

Ken,

Thanks. The class that came back is "IPM.Note".

Dick

Different ways of encrypting emails and different encryption software
produces different results but in essence what you want to do is to look at
the MessageClass of the email. A normal email will have a MessageClass of
"IPM.Note". A signed/encrypted message would have something like
"IPM.Note.Secure" or "IPM.Note.SMIME", often with other tags appended to
that. For example something like "IPM.Note.SMIME.MultipartSigned".

Examine the encrypted messages in your store to see what the MessageClass
property looks like to see what you should be testing for.

--
Ken Slovak
[MVP - Outlook]http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Optionshttp://www.slovaktech.com/products.htm




Is there are property I can use to determine if an email has been
encrypted? Our exchange server has secure email capabilities and some
of my macros, which I use to move emails into particular folders, fail
when the email item has been 'secured'. Thanks
Dick- Hide quoted text -

- Show quoted text -
 
D

Dmitry Streblechenko

No, it is IMessage Extended MAPI object, which is not usable from any script
languages since it is derived from IUnknown rather that IDispatch.

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