[evolution-mapi] Bug #621072 - Deleted meeting's request mail isn't shown properly



commit d4cbc37e5555af2125e4f5188436712ff78d3cc7
Author: Milan Crha <mcrha redhat com>
Date:   Tue Jun 15 18:57:02 2010 +0200

    Bug #621072 - Deleted meeting's request mail isn't shown properly

 src/libexchangemapi/exchange-mapi-cal-utils.c |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/src/libexchangemapi/exchange-mapi-cal-utils.c b/src/libexchangemapi/exchange-mapi-cal-utils.c
index 28b4a24..9ee292c 100644
--- a/src/libexchangemapi/exchange-mapi-cal-utils.c
+++ b/src/libexchangemapi/exchange-mapi-cal-utils.c
@@ -1326,6 +1326,20 @@ fetch_camel_cal_comp_cb (FetchItemsCallbackData *item_data, gpointer data)
 		g_free (smid);
 	}
 
+	if (!comp) {
+		/* read component from a mail, if not found in the calendar */
+		if (mid)
+			smid = exchange_mapi_util_mapi_id_to_string (mid);
+		else
+			smid = e_cal_component_gen_uid();
+		comp = exchange_mapi_cal_util_mapi_props_to_comp (item_data->conn, fccd->kind, smid,
+							item_data->properties, item_data->streams, item_data->recipients,
+							NULL, NULL, NULL);
+		set_attachments_to_cal_component (comp, item_data->attachments, fileuri);
+		e_cal_component_set_uid (comp, smid);
+		g_free (smid);
+	}
+
 	g_free (fileuri);
 	g_free (filename);
 



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