Re: How to persistently modify message contents or properties in SMTP service OnMessageSubmission event handler?
From: TC (tpulley_at_msn.com)
Date: 05/13/04
- Next message: anonymous_at_discussions.microsoft.com: "Re: Cannot Delete Messages"
- Previous message: Timothy H. Schilbach: "Re: Accessing Public Folders"
- In reply to: David Lowndes: "Re: How to persistently modify message contents or properties in SMTP service OnMessageSubmission event handler?"
- Next in thread: David Lowndes: "Re: How to persistently modify message contents or properties in SMTP service OnMessageSubmission event handler?"
- Reply: David Lowndes: "Re: How to persistently modify message contents or properties in SMTP service OnMessageSubmission event handler?"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 13 May 2004 13:11:34 -0400
Dave,
Yes it's a known but barely documented problem. Take a look at Q273233 which states:
You cannot modify MAPI messages trapped in a Simple Mail Transfer Protocol (SMTP) transport event sink, such as one that implements the ISMTPOnArrival::OnArrival method. Any modifications made to these messages seem to be successful, and show up in the scope of the event sink, but do not persist to the actual message. Additionally, some properties, such as attachments and the message's body, may not be available.
Though this limitation is inherent to Exchange 2000, it can be observed through the Windows SMTP Transport Event Sinks as well:
a.. IMailTransportSubmission::OnTransportSubmission
b.. IMailTransportOnPreCategorize::OnSyncMessagePreCategorize
c.. IMailTransportOnPostCategorize::OnMessagePostCategorize
The problem is that MAPI and WebDAV (which is what OWA 2K uses) clients communicate directly with the store. So when one of these clients sends or posts a messages it's written to the store by passing the SMTP service. The Exchange store then creates a message and sends it through the SMTP service. Any changes made to the SMTP message are not written back to the message in the store.
Tony Redmond's book on Exchange 2000 has information on the transport and message flow. Look at Chapter 6 sections 4 and 5.
I'm trying to do something similar. (I've just started working on this). There's supposed to be a work around for outbound SMTP messages (involves setting up additional virtual servers) but I don't think that it works for messages that reside in the Exchange store.
It's starting to look like store event's maybe the way to go.
Tim
"David Lowndes" <davidl@example.invalid> wrote in message news:br37a09ru5bmpa8dtol79392l366s7fovs@4ax.com...
> >Is the message comming from a MAPI client?
>
> In my tests, I've been testing from OWA, but both OWA and Outlook
> clients are needed to work.
>
> Known issue?
>
> Dave
> --
> MVP VC++ FAQ: http://www.mvps.org/vcfaq
- Next message: anonymous_at_discussions.microsoft.com: "Re: Cannot Delete Messages"
- Previous message: Timothy H. Schilbach: "Re: Accessing Public Folders"
- In reply to: David Lowndes: "Re: How to persistently modify message contents or properties in SMTP service OnMessageSubmission event handler?"
- Next in thread: David Lowndes: "Re: How to persistently modify message contents or properties in SMTP service OnMessageSubmission event handler?"
- Reply: David Lowndes: "Re: How to persistently modify message contents or properties in SMTP service OnMessageSubmission event handler?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|