[evolution-ews] Remove the extra status property if one exists in the ical component when sending a cancellation ema
- From: Or Goshen <ogosh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Remove the extra status property if one exists in the ical component when sending a cancellation ema
- Date: Thu, 18 Aug 2011 07:58:38 +0000 (UTC)
commit 18da60529948e0d1bede3d5f232a8b01b875a866
Author: Or Goshen <orx goshen intel com>
Date: Thu Aug 18 10:56:51 2011 +0300
Remove the extra status property if one exists in the ical component when sending a cancellation email
src/calendar/e-cal-backend-ews.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/calendar/e-cal-backend-ews.c b/src/calendar/e-cal-backend-ews.c
index 216e1f6..8ae9bc4 100644
--- a/src/calendar/e-cal-backend-ews.c
+++ b/src/calendar/e-cal-backend-ews.c
@@ -2411,12 +2411,13 @@ ewscal_send_cancellation_email (EEwsConnection *cnc, CamelAddress *from, CamelIn
icalcomponent_add_property (vcal, icalproperty_new_prodid("-//Evolution EWS backend//EN"));
icalcomponent_add_property (vcal, icalproperty_new_method(ICAL_METHOD_CANCEL));
vevent = icalcomponent_new_from_string (calobj);
+ prop = icalcomponent_get_first_property (vevent, ICAL_STATUS_PROPERTY);
+ if (prop != NULL) icalcomponent_remove_property (vevent, prop);
icalcomponent_add_property (vevent, icalproperty_new_status(ICAL_STATUS_CANCELLED));
prop = icalcomponent_get_first_property (vevent, ICAL_METHOD_PROPERTY);
if (prop != NULL) icalcomponent_remove_property (vevent, prop);
icalcomponent_add_component (vcal, icalcomponent_new_clone (icaltimezone_get_component ((icaltimezone *)icalcomponent_get_dtstart (vevent).zone)));
icalcomponent_add_component (vcal, vevent);
-
text_part = camel_mime_part_new ();
camel_mime_part_set_content (text_part, body, strlen (body), "text/plain");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]