PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Program Addins Save Message to MSG Compound File Doesn't Work With S/MIME Messages

Reply

Save Message to MSG Compound File Doesn't Work With S/MIME Messages

 
Thread Tools Rate Thread
Old 15-07-2003, 03:05 PM   #1
zippy
Guest
 
Posts: n/a
Default Save Message to MSG Compound File Doesn't Work With S/MIME Messages


Has anybody tried the code in Microsoft Knowledge Base Article -
171907 with Native Microsoft S/MIME messages (IPM.Note.SMIME,
IPM.Note.SMIME.MultipartSigned)?

The code is here:

<http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/q171/9/07.asp&NoWebContent=1>

This code works great with messages of any message class except those
allocated to Native Microsoft S/MIME messages. The CopyTo call
returns MAPI_E_CALL_FAILED.

I am using this code in OnWriteComplete to save attached S/MIME
messages to a file when a user clicks "Send".

I tried changing the message class right before the CopyTo call to
something else, but CopyTo still fails. However, if I use
OnSelectionChange to successfully change the message class to
something else before OnWriteComplete is called, then the CopyTo in
OnWriteComplete works fine. The message is otherwise exactly the same
as the one that failed with the S/MIME message class.

Has anybody encountered this? Has anybody found a workaround for
this?

Thanks,
-zip
  Reply With Quote
Old 15-07-2003, 09:18 PM   #2
Dmitry Streblechenko
Guest
 
Posts: n/a
Default Re: Save Message to MSG Compound File Doesn't Work With S/MIME Messages

IMessage returned by Outlook to an Exchange Client Extension is not a native
IMessage implemented by a message store provider, but Outlook's own wrapper
sitting on top of the native message. The wrapper is notoriously buggy.
The wrapper presents the original encrypted message in a decrypted form
(e.g. it does not have p7m attachment).
The only workaround I am aware of is to copy the message property by
property.

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


"zippy" <zippy747@hotmail.com> wrote in message
news:96ed67a7.0307150705.6f90da3c@posting.google.com...
> Has anybody tried the code in Microsoft Knowledge Base Article -
> 171907 with Native Microsoft S/MIME messages (IPM.Note.SMIME,
> IPM.Note.SMIME.MultipartSigned)?
>
> The code is here:
>
>

<http://support.microsoft.com/defaul...t.microsoft.com
:80/support/kb/articles/q171/9/07.asp&NoWebContent=1>
>
> This code works great with messages of any message class except those
> allocated to Native Microsoft S/MIME messages. The CopyTo call
> returns MAPI_E_CALL_FAILED.
>
> I am using this code in OnWriteComplete to save attached S/MIME
> messages to a file when a user clicks "Send".
>
> I tried changing the message class right before the CopyTo call to
> something else, but CopyTo still fails. However, if I use
> OnSelectionChange to successfully change the message class to
> something else before OnWriteComplete is called, then the CopyTo in
> OnWriteComplete works fine. The message is otherwise exactly the same
> as the one that failed with the S/MIME message class.
>
> Has anybody encountered this? Has anybody found a workaround for
> this?
>
> Thanks,
> -zip



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

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