Hi list, The IMAPIFolder CreateFolder IDL and API has been improved and requires developer to update their code. The behavior and parameters and now closer to Microsoft MSDN one.
The IDL dump is now much more complete and the libmapi implementation
provides more control over the folder creation.
The new prototype is:
_PUBLIC_ enum MAPISTATUS CreateFolder(mapi_object_t *obj_parent,
uint8_t ulFolderType,
const char *name,
const char *comment,
uint32_t ulFlags,
mapi_object_t *obj_child);
- ulFolderType: specify the type of folder. Can be either
FOLDER_GENERIC or FOLDER_SEARCH. Note that creating search
folders still require to implement SetSearchCriteria and a few
other calls that may not yet be in the MAPI library.
- ulFlags:
* OPEN_IF_EXISTS: If the folder already exists, open it
* MAPI_UNICODE: If we want the folder name and comment
to be UNICODE rather than ANSI.
I've added some options to openchangeclient to provide a sample
overview:
1. mkdir
openchangeclient --mkdir --folder=Calendar --folder-name="My new
Folder" --folder-comment="Folder Comment"
This will create a folder named "My New Folder" under the
Calendar folder. If you omit to specify --folder, the new folder
will be created under the Inbox folder.
2. rmdir
openchangeclient --rmdir --folder=Calendar --folder-name="My new
Folder"
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
