On Mon, 2007-07-09 at 13:44 +0200, Julien Kerihuel wrote: > [0x2] Public Folders: > ===================== > There has not been many investigations done on this part, but this may > come quicker than expected.
I've implemented Public Folders support in MAPI Library but have not yet
commit it on the svn. As a POC, I've added a openchangeclient --pf
option which displays the Public Folder hierarchy on stdout.
This provide outputs similar to the one provided below:
=====================================================================
[EMAIL PROTECTED] trunk]$ openchangeclient --pf
|---+ IPM_SUBTREE
| |---+ Internet Newsgroups
| |---+ Test
|---+ NON_IPM_SUBTREE
| |---+ EFORMS REGISTRY
| |---+ Events Root
| |---+ OFFLINE ADDRESS BOOK
| | |---+ /o=First Organization/cn=addrlists/cn=oabs/cn=Default
Offline Address List
| | |---+ EX:/o=First Organization/ou=First Administrative Group
| |---+ SCHEDULE+ FREE BUSY
| | |---+ EX:/o=First Organization/ou=First Administrative Group
| |---+ Schema
| |---+ StoreEvents{322DC70C-B858-4F87-B9C1-5006DF7C9358}
| | |---+ globalevents
| | |---+ internal
pf : MAPI_E_SUCCESS (0x0)
[EMAIL PROTECTED] trunk]$
=====================================================================
In order to add Public Folder support in the existing MAPI library
implementation and keep existing functions, I have added a new parameter
to OpenMsgStore:
OpenMsgStore(&obj_store, PROVIDER_TYPE_MAILBOX): to access user mailbox
OpenMsgStore(&obj_store, PROVIDER_TYPE_PF): to access public folders
I've also started to implement a GetDefaultPublicFolder function. It is
designed like GetDefaultFolder: return a specific PF mapi_id_t fetched
in OpenMsgStore reply given a defined name. So far, I have only added a
olFolderPublicRoot which is similar to olFolderTopInformationStore for
mailbox.
Cheers,
Julien.
--
Julien Kerihuel
[EMAIL PROTECTED]
OpenChange Project Manager
GPG Fingerprint: 0B55 783D A781 6329 108A B609 7EF6 FE11 A35F 1F79
signature.asc
Description: This is a digitally signed message part
_______________________________________________ devel mailing list [email protected] http://mailman.openchange.org/listinfo/devel
