Microsoft KB Archive/188297

= PRB: Calling FlushQueues Does Not Deliver Messages =

Article ID: 188297

Article Last Modified on 8/18/2005

-

APPLIES TO


 * Microsoft Messaging Application Programming Interface
 * Microsoft Exchange Server 4.0 Standard Edition
 * Microsoft Exchange Server 5.0 Standard Edition
 * Microsoft Exchange Server 5.5 Standard Edition

-



This article was previously published under Q188297



SYMPTOMS
Frequently, developers want to have their application work with an offline store and at a later time send and receive mail by calling IMAPIStatus::FlushQueues. Sometimes, FlushQueues will return success but no messages are sent or received. The outgoing mail is still located in the Outbox.



CAUSE
This problem is the result of a limitation of the Extended Messaging Application Programming Interface (MAPI) spooler. The spooler only checks for outgoing mail in currently loaded (open) message stores. So, if you do not currently have a reference to the store via IMAPISession::OpenMsgStore, for example, the messages in that store will not be flushed.



RESOLUTION
In order to ensure that messages in a particular message store are flushed, call IMAPISession::OpenMsgStore on that store, call IMAPIStatus::FlushQueues, and then release your store pointer.



STATUS
This behavior is by design.

Additional query words: kbDSupport kbMsg kbMAPI100 FlushQueues Offline EDKApi EMAPI RAS kbdse

Keywords: kbapi kbmsg kbprb KB188297

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.