On Thu, 2008-02-21 at 17:52 +0000, Gary Rigg wrote:
> Can I be as bold as to make a minor suggestion?  Would it help if the
> openchangeclient returned the new ID on a create event?  

Done in rev348. I've added the unique ID to the output of
sendappointment, sendtask, sendcontact and sendnote.

I've also applied the --update fix and added the --delete feature
discussed in my previous email. So far, users couldn't delete
appointments, tasks, contacts or notes from openchangeclient. Using the
unique ID model introduced with --update, users can now delete any item
given its unique ID, such as in the example below:

[0x1] Create and List an Appointment
====================================
$ openchangeclient --sendappointment \
--subject="OpenChange Development session" --location="Home Sweet Home"\
--body="This is a sample appointment" --dtstart="2008-02-21 21:00:00"\
--dtend="2008-02-21 23:00:00" --busystatus=BUSY --label=IMPORTANT\
    Unique ID                : AA13000000000001/18EA000000000001
    sendappointment          : MAPI_E_SUCCESS (0x0)

$ openchangeclient --fetch-items=appointment

MAILBOX (1 messages)
|==OpenChange Development session==| :AA13000000000001/18EA000000000001
        Location: Home Sweet Home
        Start time     :   Thu Feb 21 21:00:00 2008 CET
        End time       :   Thu Feb 21 23:00:00 2008 CET
        Private: False
        Status: Completed
    fetchitems               : MAPI_E_SUCCESS (0x0)

[0x2] Delete the appointment
============================
$ openchangeclient --delete=AA13000000000001/18EA000000000001
    deleteitems              : MAPI_E_SUCCESS (0x0)
$ openchangeclient --fetch-items=appointment
MAILBOX (0 messages)
    fetchitems               : MAPI_E_SUCCESS (0x0)

Since update and delete features recursively loops over folders and
hierarchy tables until they found the good folder ID, these features may
also apply to items created in non-default folders.

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