[evolution-ews] Use ewscal_set_reccurence() when creating a new calendar item
- From: Or Goshen <ogosh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Use ewscal_set_reccurence() when creating a new calendar item
- Date: Sun, 22 May 2011 08:35:39 +0000 (UTC)
commit a9560a70d468a2dc53a8e81ee5885d4f523e0add
Author: Or Goshen <orx goshen intel com>
Date: Sun May 22 11:39:24 2011 +0300
Use ewscal_set_reccurence() when creating a new 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 a39952e..575ee20 100644
--- a/src/calendar/e-cal-backend-ews.c
+++ b/src/calendar/e-cal-backend-ews.c
@@ -947,6 +947,7 @@ convert_calcomp_to_xml(ESoapMessage *msg, gpointer user_data)
icalcomponent *icalcomp = (icalcomponent*)user_data;
GSList *required = NULL, *optional = NULL, *resource = NULL;
icaltimetype dtstart, dtend;
+ icalproperty *prop;
/* FORMAT OF A SAMPLE SOAP MESSAGE: http://msdn.microsoft.com/en-us/library/aa564690.aspx */
@@ -970,6 +971,12 @@ convert_calcomp_to_xml(ESoapMessage *msg, gpointer user_data)
/* location */
e_ews_message_write_string_parameter(msg, "Location", NULL, icalcomponent_get_location(icalcomp));
+ /* Recurrence */
+ prop = icalcomponent_get_first_property(icalcomp, ICAL_RRULE_PROPERTY);
+ if (prop != NULL) {
+ ewscal_set_reccurence(msg, prop, &dtstart);
+ }
+
/* collect attendees */
e_ews_collect_attendees(icalcomp, &required, &optional, &resource);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]