[This is preliminary documentation and subject to change.]
The Archiver sink example demonstrates how to implement a simple transport event sink for the SMTP service. Specifically, this example highlights the following:
Implementing an OnMessageSubmission transport event sink.
Using the Server Extension Objects (SEO) to register the sink event binding with the SMTP service.
Using the IPersistPropertyBag interface to receive binding properties when the sink is notified of an event. The location of the archive is specified by the "ArchiveDir" sink binding property.
Using the IEventIsCacheable SEO interface to signal to the event dispatcher that the sink object can and should be cached for subsequent events.