From fd64fa7e0472de3c9b132f4fa97d5f38f6a739d5 Mon Sep 17 00:00:00 2001 From: Matt Whitslar Date: Mon, 19 Jun 2017 16:46:53 -0400 Subject: [PATCH] Delete appointment from trash after canceling --- lib/zimbra/appointment.rb | 7 +++++++ lib/zimbra/version.rb | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/zimbra/appointment.rb b/lib/zimbra/appointment.rb index ee8dcd6..2fd1935 100644 --- a/lib/zimbra/appointment.rb +++ b/lib/zimbra/appointment.rb @@ -261,6 +261,13 @@ def cancel(appointment, invite_id) xml = invoke("n2:CancelAppointmentRequest") do |message| Builder.cancel(message, appointment.id, invite_id) end + + xml = invoke("n2:ItemActionRequest") do |message| + message.add "action" do |action| + action.set_attr 'id', appointment.id + action.set_attr 'op', 'delete' + end + end end class Builder diff --git a/lib/zimbra/version.rb b/lib/zimbra/version.rb index 572d272..53185a6 100644 --- a/lib/zimbra/version.rb +++ b/lib/zimbra/version.rb @@ -1,3 +1,3 @@ module Zimbra - VERSION = "0.0.10" + VERSION = "0.0.11" end