On Wed, 2007-08-29 at 07:14 +0930, Dan Shearer wrote:
> libmapi has global context by design.
> 
> Are there situations, particularly in GUI groupware clients, where the
> developer will want to open multiple sessions?

Definitively and this situation also applies to console applications.
Just a quick example where it would be needed:

You want to copy mail (CopyTo MAPI operation) from your Inbox (mailbox
store) to a public folder one (PF store) when subject of emails matches
a particular pattern.

That is part of the improvement I want to bring prior releasing
libmapi-0.6. I've identified how to do it, mostly keeping session
context within each object rather than use global_context. Which implies
removing the awful mapi_ctx->session->emsmdb->ctx.

We would anyway still keep a chained list of session within
global_context for uninitialization purposes.

-- 
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