A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Property for a message that is secured (encrypted)



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 22nd 07, 11:17 PM posted to microsoft.public.outlook.program_vba
Dick
external usenet poster
 
Posts: 4
Default Property for a message that is secured (encrypted)

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

Ads
  #2  
Old September 24th 07, 04:13 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Property for a message that is secured (encrypted)

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 Options
http://www.slovaktech.com/products.htm


"Dick" wrote in message
oups.com...
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


  #3  
Old September 24th 07, 06:22 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Property for a message that is secured (encrypted)

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

"Ken Slovak - [MVP - Outlook]" wrote in message
...
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 Options
http://www.slovaktech.com/products.htm


"Dick" wrote in message
oups.com...
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




  #4  
Old September 26th 07, 03:34 PM posted to microsoft.public.outlook.program_vba
Dick
external usenet poster
 
Posts: 4
Default Property for a message that is secured (encrypted)

Ken,

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

Dick

On Sep 24, 11:13 am, "Ken Slovak - [MVP - Outlook]"
wrote:
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

"Dick" wrote in message

oups.com...



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 -



  #5  
Old September 26th 07, 03:44 PM posted to microsoft.public.outlook.program_vba
Dick
external usenet poster
 
Posts: 4
Default Property for a message that is secured (encrypted)

Dmitry,

I am using VBA. Is MAPIOBJECT or its equivalent available in VBA?

Dick

On Sep 24, 1:22 pm, "Dmitry Streblechenko" wrote:
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

"Ken Slovak - [MVP - Outlook]" wrote in . ..



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 Options
http://www.slovaktech.com/products.htm


"Dick" wrote in message
roups.com...
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 -



  #6  
Old September 26th 07, 03:48 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Property for a message that is secured (encrypted)

Take a look at what Dmitry said about that in this thread.

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


"Dick" wrote in message
ups.com...
Ken,

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

Dick


  #7  
Old September 26th 07, 05:57 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Property for a message that is secured (encrypted)

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

"Dick" wrote in message
oups.com...
Dmitry,

I am using VBA. Is MAPIOBJECT or its equivalent available in VBA?

Dick

On Sep 24, 1:22 pm, "Dmitry Streblechenko" wrote:
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

"Ken Slovak - [MVP - Outlook]" wrote in
. ..



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 Options
http://www.slovaktech.com/products.htm


"Dick" wrote in message
roups.com...
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 -





 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
getting email address of To property in Outlook Inbox and From property in Outlook Outbox Omatase Outlook - General Queries 1 July 19th 07 01:04 PM
how do i set my wireless router to be secured Margie Outlook - General Queries 2 September 14th 06 08:03 PM
encrypted message could not be displayed TuffTurf Outlook Express 7 September 9th 06 07:22 PM
Can an automatic message be added when sending encrypted e-mail? Carnitram Outlook and VBA 1 June 7th 06 04:53 PM
encrypted PST file Elijah Bass Outlook - General Queries 1 March 24th 06 11:04 PM


All times are GMT +1. The time now is 09:34 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2024 Outlook Banter.
The comments are property of their posters.