 |
|
 |
|
Next: Interoperability: Email format problem
|
| Author |
Message |
External

Since: Jul 05, 2007 Posts: 1
|
(Msg. 1) Posted: Thu Jul 05, 2007 4:49 pm
Post subject: Using Outlook Object Model to check if a message is digitally signed Archived from groups: microsoft>public>outlook>interop, others (more info?)
|
|
|
Hello there,
Does anyone know if there is a way, in the Outlook object model, to
check whether a Message (a msg file) is digitally signed ?
I know that messages that are digitally signed have an attachment
called "smime.p7m", and I could just check the message for such an
attachment, but I wanted something more. If the message is signed, I
wanted to get some information from the certificate that was used to
sign it (such as the name of the user it was issued to, the issuer
Certificate Authority, the date of expiry, etc).
Please let me know if you know of anyway to do this from .NET 1.1
code.
Thanks in advance.
Cheers from Portugal,
Joao Maia |
|
| Back to top |
|
 |  |
External

Since: Feb 11, 2005 Posts: 21627
|
(Msg. 2) Posted: Thu Jul 05, 2007 4:49 pm
Post subject: Re: Using Outlook Object Model to check if a message is digitally signed [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Checking for that attachment is certainly a viable strategy. IIRC, the MessageClass value will also be something other than IPM.Note.
The Outlook object model exposes no information about certificates, though.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
"Joćo Maia" <jmaia.DeleteThis@yahoo.com> wrote in message news:1183654185.915419.25300@r34g2000hsd.googlegroups.com...
> Hello there,
>
> Does anyone know if there is a way, in the Outlook object model, to
> check whether a Message (a msg file) is digitally signed ?
>
> I know that messages that are digitally signed have an attachment
> called "smime.p7m", and I could just check the message for such an
> attachment, but I wanted something more. If the message is signed, I
> wanted to get some information from the certificate that was used to
> sign it (such as the name of the user it was issued to, the issuer
> Certificate Authority, the date of expiry, etc).
>
> Please let me know if you know of anyway to do this from .NET 1.1
> code.
>
> Thanks in advance.
>
> Cheers from Portugal,
>
> Joao Maia
> |
|
| Back to top |
|
 |  |
External

Since: Nov 23, 2003 Posts: 1365
|
(Msg. 3) Posted: Fri Jul 06, 2007 2:32 pm
Post subject: Re: Using Outlook Object Model to check if a message is digitally signed [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
I don't think you'd be able to do that - Outlook goes to great lengths to
make encrypted/signed messages appear as regular MailItem objects.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Joćo Maia" <jmaia RemoveThis @yahoo.com> wrote in message
news:1183654185.915419.25300@r34g2000hsd.googlegroups.com...
> Hello there,
>
> Does anyone know if there is a way, in the Outlook object model, to
> check whether a Message (a msg file) is digitally signed ?
>
> I know that messages that are digitally signed have an attachment
> called "smime.p7m", and I could just check the message for such an
> attachment, but I wanted something more. If the message is signed, I
> wanted to get some information from the certificate that was used to
> sign it (such as the name of the user it was issued to, the issuer
> Certificate Authority, the date of expiry, etc).
>
> Please let me know if you know of anyway to do this from .NET 1.1
> code.
>
> Thanks in advance.
>
> Cheers from Portugal,
>
> Joao Maia
> |
|
| Back to top |
|
 |  |
External

Since: Aug 27, 2004 Posts: 30
|
(Msg. 4) Posted: Fri Jul 06, 2007 5:48 pm
Post subject: Re: Using Outlook Object Model to check if a message is digitally signed [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"Dmitry Streblechenko" <dmitry.DeleteThis@dimastr.com> wrote in message
news:OzuBHTBwHHA.4464@TK2MSFTNGP02.phx.gbl...
>I don't think you'd be able to do that - Outlook goes to great lengths to
>make encrypted/signed messages appear as regular MailItem objects.
Not that great, signed messages in Outlook have a visible attachment, which
is unfortunate as it makes signed email unusable to me (clients complain
that they can't distinguish emails from me that have explicit attachments,
from the rest, when all of my emails have the paperclip icon, by virtue of
being signed.)
The disturbing thing is, OE does it right, signed emails do not appear to
have a spurious attachment. Perhaps even more disturbing, I have to assume
that spurious attachment in Outlook is by design, as it has persisted across
at least 4 versions of Outlook. Could they be unaware that this usability
flaw is putting users off of signed email?
Anyway, whether the attachment is accessible I couldn't say, but if it is,
try using CAPICOM to extract details from the attached cert. (CAPICOM is a
crypto API COM object, freely available on MSDN.)
-Mark
> Dmitry Streblechenko (MVP)
> http://www.dimastr.com/
> OutlookSpy - Outlook, CDO
> and MAPI Developer Tool
>
> "Joćo Maia" <jmaia.DeleteThis@yahoo.com> wrote in message
> news:1183654185.915419.25300@r34g2000hsd.googlegroups.com...
>> Hello there,
>>
>> Does anyone know if there is a way, in the Outlook object model, to
>> check whether a Message (a msg file) is digitally signed ?
>>
>> I know that messages that are digitally signed have an attachment
>> called "smime.p7m", and I could just check the message for such an
>> attachment, but I wanted something more. If the message is signed, I
>> wanted to get some information from the certificate that was used to
>> sign it (such as the name of the user it was issued to, the issuer
>> Certificate Authority, the date of expiry, etc).
>>
>> Please let me know if you know of anyway to do this from .NET 1.1
>> code.
>>
>> Thanks in advance.
>>
>> Cheers from Portugal,
>>
>> Joao Maia
>>
>
> |
|
| Back to top |
|
 |  |
External

Since: Nov 23, 2003 Posts: 1365
|
(Msg. 5) Posted: Fri Jul 06, 2007 6:38 pm
Post subject: Re: Using Outlook Object Model to check if a message is digitally signed [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
I mean "goes to great lengths" in the Object Model. In the UI you can of
course see that this is not a regular message.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Mark J. McGinty" <mmcginty RemoveThis @spamfromyou.com> wrote in message
news:OmCxzBDwHHA.1188@TK2MSFTNGP04.phx.gbl...
>
> "Dmitry Streblechenko" <dmitry RemoveThis @dimastr.com> wrote in message
> news:OzuBHTBwHHA.4464@TK2MSFTNGP02.phx.gbl...
>>I don't think you'd be able to do that - Outlook goes to great lengths to
>>make encrypted/signed messages appear as regular MailItem objects.
>
> Not that great, signed messages in Outlook have a visible attachment,
> which is unfortunate as it makes signed email unusable to me (clients
> complain that they can't distinguish emails from me that have explicit
> attachments, from the rest, when all of my emails have the paperclip icon,
> by virtue of being signed.)
>
> The disturbing thing is, OE does it right, signed emails do not appear to
> have a spurious attachment. Perhaps even more disturbing, I have to assume
> that spurious attachment in Outlook is by design, as it has persisted
> across at least 4 versions of Outlook. Could they be unaware that this
> usability flaw is putting users off of signed email?
>
> Anyway, whether the attachment is accessible I couldn't say, but if it is,
> try using CAPICOM to extract details from the attached cert. (CAPICOM is
> a crypto API COM object, freely available on MSDN.)
>
>
> -Mark
>
>
>> Dmitry Streblechenko (MVP)
>> http://www.dimastr.com/
>> OutlookSpy - Outlook, CDO
>> and MAPI Developer Tool
>>
>> "Joćo Maia" <jmaia RemoveThis @yahoo.com> wrote in message
>> news:1183654185.915419.25300@r34g2000hsd.googlegroups.com...
>>> Hello there,
>>>
>>> Does anyone know if there is a way, in the Outlook object model, to
>>> check whether a Message (a msg file) is digitally signed ?
>>>
>>> I know that messages that are digitally signed have an attachment
>>> called "smime.p7m", and I could just check the message for such an
>>> attachment, but I wanted something more. If the message is signed, I
>>> wanted to get some information from the certificate that was used to
>>> sign it (such as the name of the user it was issued to, the issuer
>>> Certificate Authority, the date of expiry, etc).
>>>
>>> Please let me know if you know of anyway to do this from .NET 1.1
>>> code.
>>>
>>> Thanks in advance.
>>>
>>> Cheers from Portugal,
>>>
>>> Joao Maia
>>>
>>
>>
>
> |
|
| Back to top |
|
 |  |
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
 |
|
|