Cached exchange mode, programmatically sync

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
A couple quick questions (I hope).

I'm in the middle of tracking down some Cached exchange mode issues with our
product. In a nut shell, we place a message in a user's mailbox on the
exchange server. Then try to open the entry with the entryID of the message
on the server, the problem is when in cached mode MAPI tries to open the
entry from the local cached mailbox and OpenEntry returns
MAPI_E_INVALID_ENTRYID since the message does not exist locally.

I found some new flags, one for opening a message store on the server which
should ignore all the cached mailbox stuff. I can't seem to get it to work
even though it looks pretty straight forward in the MS example
(http://support.microsoft.com/default.aspx?scid=kb;en-us;834496). I've also
tried the OpenEntry flag which should by-pass the local store
(MAPI_NO_CACHE). I receive MAPI_E_INVALID_ENTRYID no matter how I open the
message store or entry. I'm wondering if anyone has run into similar issues.

Lastly, is there a way to force a sync programatically between the client
and server?

Thanks for any info,
daveo
 
Hi Andreas,
I've resolved the invalid entry ID issue. Let’s just say a co-worker
changed some code adding a some debug output down in the bowels of the
product. It just happened to append the entry ID to the same string as the
debug output.

Now back to the MAPI_NO_CACHE issue with the OpenEntry call. It seems now
the message can be opened, but it only contains header information. My first
thought was change the sync options to download the entire message, but since
it's a 2000 exchange server there are no such options in the UI of Outlook
2K3. So it still seems the MAPI_NO_CACHE flag is not opening the message
from the mailbox on the server.

Again any info/pointers would be greatly appreciated.


Thanks,
daveo
 
Back
Top