Share via


Detecting Outgoing Messages

Detecting Outgoing Messages

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

A gateway can determine when an outgoing message arrives in its MTS-OUT folder by polling the mailbox store periodically or by waiting for an Advise event from the mailbox store.

Note  If your gateway uses the Advise event, the mailbox store may not immediately send an Advise to the gateway when it sends a message. This is because MAPI does not immediately flush the Advise request. The Advise request does not become active until the cache is flushed.

If your gateway uses the Advise event, you can flush any pending Advise events in either of the following ways:

  • Perform an IMAPITable::QueryRows operation on the contents table of the MTS-OUT folder.
  • Request a non-cached property of the MTS-OUT folder.

Send us your feedback about the Microsoft Exchange Server 2003 SDK.

Build: June 2007 (2007.618.1)

© 2003-2006 Microsoft Corporation. All rights reserved. Terms of use.