Attachment from Forwarded Message Doesn't Show in Mail Form
- From: Jack Harris <jdharris@xxxxxxxxxxx>
- Date: Mon, 29 Sep 2008 15:07:01 -0700
This is a strange one - in our custom message store, when forwarding a
message that has attachments, the attachments do not show up in the new Mail
Form. They are there and if you send the message the attachments are sent.
I've looked at this in the PST provider with Outlook Spy. The attachments
are in the attachment table for the message. In our store, they are not in
the attachment table.
According to the documentation for IMessage::CreateAttach(), attachments
should not be in the attachment table until IMapiProp::SaveChanges() is
called on both the message and the attachment and that's the way our store is
coded. In our store, Outlook calls SaveChanges() on the attachment, but not
on the message. That makes sense, as you wouldn't want to persist the message
until the user either saves or sends the message.
I've tried to work around the problem by adding the attachment item to the
table when SaveChanges() is called on the attachment object. Outlook then
tries to call OpenAttach() on the message object, which fails because we
haven't saved the attachment object to storage yet.
Has anyone else run into this, or am I just doing it wrong?
--
Jack Harris
.
- Follow-Ups:
- Re: Attachment from Forwarded Message Doesn't Show in Mail Form
- From: Dmitry Streblechenko
- Re: Attachment from Forwarded Message Doesn't Show in Mail Form
- Prev by Date: Re: Remove Form Definition from One-Offed item
- Next by Date: Re: Attachment from Forwarded Message Doesn't Show in Mail Form
- Previous by thread: Remove Form Definition from One-Offed item
- Next by thread: Re: Attachment from Forwarded Message Doesn't Show in Mail Form
- Index(es):
Relevant Pages
|