[evolution-ews] In order to accept items we have to store AssociatedCalendarItemId (X-EVOLUTION-ITEMID) or mail id (
- From: Pavel Ocheretny <pocheretny src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] In order to accept items we have to store AssociatedCalendarItemId (X-EVOLUTION-ITEMID) or mail id (
- Date: Sun, 31 Jul 2011 16:43:13 +0000 (UTC)
commit 07437204c1dcc23368a55d87be2abdd21b095bd1
Author: Pavel Ocheretny <pocheretny src gnome org>
Date: Sun Jul 31 19:40:49 2011 +0300
In order to accept items we have to store AssociatedCalendarItemId (X-EVOLUTION-ITEMID)
or mail id (X-EVOLUTION-ACCEPT-ID ) when we do not have AssociatedCalendarItemId
src/camel/camel-ews-folder.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/src/camel/camel-ews-folder.c b/src/camel/camel-ews-folder.c
index a169f3c..eb91a72 100644
--- a/src/camel/camel-ews-folder.c
+++ b/src/camel/camel-ews-folder.c
@@ -233,18 +233,21 @@ ews_update_mgtrequest_mime_calendar_itemid (const gchar* mime_fname, const EwsId
g_object_unref (tmpstream);
goto exit_msg;
}
- /* Replace original random UID with AssociatedCalendarItemId (ItemId) */
ba = camel_stream_mem_get_byte_array (CAMEL_STREAM_MEM (tmpstream));
g_byte_array_append (ba, (guint8 *) "\0", 1);
icalcomp = icalparser_parse_string ((gchar *) ba->data);
subcomp = icalcomponent_get_first_component (icalcomp, ICAL_VEVENT_COMPONENT);
icalprop = icalproperty_new_x (item_id->change_key);
icalproperty_set_x_name (icalprop, "X-EVOLUTION-CHANGEKEY");
+
+ /* In order to accept items we have to store AssociatedCalendarItemId (X-EVOLUTION-ITEMID)
+ * or mail id (X-EVOLUTION-ACCEPT-ID ) when we do not have AssociatedCalendarItemId */
icalcomponent_add_property (subcomp, icalprop);
if (is_calendar_UID){
- icalcomponent_set_uid (icalcomp, (gchar *) item_id->id);
- }
- else {
+ icalprop = icalproperty_new_x (item_id->id);
+ icalproperty_set_x_name (icalprop, "X-EVOLUTION-ITEMID");
+ icalcomponent_add_property (subcomp, icalprop);
+ } else {
icalprop = icalproperty_new_x (item_id->id);
icalproperty_set_x_name (icalprop, "X-EVOLUTION-ACCEPT-ID");
icalcomponent_add_property (subcomp, icalprop);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]