[evolution-ews] Use ewscal_set_reccurence() when modifying an existing calendar item



commit 19878cab76b9f5068c9470bc4fe2dd81b08eafad
Author: Or Goshen <orx goshen intel com>
Date:   Sun May 22 11:49:45 2011 +0300

    Use ewscal_set_reccurence() when modifying an existing calendar item

 src/calendar/e-cal-backend-ews.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/calendar/e-cal-backend-ews.c b/src/calendar/e-cal-backend-ews.c
index 575ee20..8af8a62 100644
--- a/src/calendar/e-cal-backend-ews.c
+++ b/src/calendar/e-cal-backend-ews.c
@@ -1238,6 +1238,7 @@ convert_component_to_updatexml(ESoapMessage *msg, gpointer user_data)
 	icalcomponent *icalcomp = e_cal_component_get_icalcomponent (modify_data->comp);
 	GSList *required = NULL, *optional = NULL, *resource = NULL;
 	icaltimetype dtstart, dtend;
+	icalproperty *prop;
 
 	e_ews_message_start_item_change (msg, E_EWS_ITEMCHANGE_TYPE_ITEM,
 					 modify_data->itemid, modify_data->changekey, 0);
@@ -1259,6 +1260,12 @@ convert_component_to_updatexml(ESoapMessage *msg, gpointer user_data)
 
 	convert_property_to_updatexml  (msg, "Location", icalcomponent_get_location(icalcomp), "calendar", NULL, NULL);
 
+	/* Recurrence */
+	prop = icalcomponent_get_first_property(icalcomp, ICAL_RRULE_PROPERTY);
+	if (prop != NULL) {
+		ewscal_set_reccurence(msg, prop, &dtstart);
+	}
+
 	e_ews_collect_attendees(icalcomp, &required, &optional, &resource);
 	if (required != NULL) {
 		e_ews_message_start_set_item_field (msg, "RequiredAttendees", "calendar");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]