Hi List,

I've just pushed an update of the DeleteFolder IDL, libmapi
implementation and references into openchange code base. (r748)

So far, we were arbitrary setting the DelefeFolderFlags to 0x5
(DEL_MESSAGES|DEL_FOLDERS) which meant "delete all messages within the
folder, all subfolders and its subfolders".

The updated version now let you control how DeleteFolder should behave
and also let you use the DELETE_HARD_DELETE flag which will delete items
permanently without moving them to the 'Deleted folder'.

Last but not least, I've added the optional PartialCompletion parameter
returned by the server and which let you know whether the operation was
partially completed or not (pointer on a boolean value). If you're not
interested in the PartialCompletion value, just set the parameter to
NULL.

Example:
        Before r748:
                retval = DeleteFolder(&obj_parent, 
mapi_object_get_id(&obj_folder));
        After 748:
                retval = DeleteFolder(&obj_parent, 
mapi_object_get_id(&obj_folder), DEL_MESSAGES|DEL_FOLDERS, NULL);


Finally, I think this update may help in fixing ticket #84
(http://trac.openchange.org/ticket/84). Brad, can you review mapitest
code and use the DELETE_HARD_DELETE bit flag where necessary? This may
not fix everything, but should anyway help I guess.

Cheers,
Julien.

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