On Tue, 2009-03-10 at 17:23 +0100, Paolo Abeni wrote:

> hello,
> 
> Thanks for the kind reply,
> 
> On Tue, Mar 10, 2009 at 4:31 PM, Julien Kerihuel
> <[email protected]> wrote:
> > The "store" opaque object returned by OpenUserMailbox, OpenMsgStore or
> > OpenPublicFolders is the first object you retrieve and which all further
> > MAPI calls depend on. Unless I'm wrong, this "should" mean this object
> > is supposed to be unique and only one active store object can be used
> > within a given session.
> > I have doubled checked libmapi's internals and there's no code which
> > would impact on the code pasted above but Exchange internal behavior.
> 
> The code I posted is a pretty rough translation of a win32/mapi  code
> chunk. From win32/mapi I'm able to open the same message store
> multiple time within the same session. Moreover (given the proper
> permission on the exchange server) I'm able to open multiple stores,
> belonging to different users, within the same session.
> 
> According to this article:
> 
> http://support.microsoft.com/kb/260141
> 
> the hard limit imposed by the exchange protocol is at most 256 message
> stores opened within the same session.
> 
> Looking at the openchange/libmapi code, in the OpenUserMailbox(), the
> EcDoRpc_MAPI_REQ 'login_id' parameter is always 0. Could this
> parameter possibly be used to somewhat 'multiplex' multiple message
> store in the same session ?!? It's just a wild guess, since I really
> don't know the exchange protocol.


Very likely indeed; login_id is uint8_t so can be within range(0x0,
0xFF) = 256.


Julien Kerihuel
[email protected]
OpenChange Project Manager

GPG Fingerprint: 0B55 783D A781 6329 108A  B609 7EF6 FE11 A35F 1F79


Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
devel mailing list
[email protected]
http://mailman.openchange.org/listinfo/devel

Reply via email to