[evolution-mapi] Bug #629489 - Could not get attach_file_url



commit ff211ae85009ec3704b1ae8736d166d5e2651a45
Author: Punit Jain <jpunit novell com>
Date:   Tue Sep 14 09:41:56 2010 +0530

    Bug #629489 - Could not get attach_file_url
    
    Could not get attach_file_url The pathname 'file:///tmp/' is not an absolute path.
    Pass absolute path rather than uri to set_attachments_to_cal_component.

 src/libexchangemapi/exchange-mapi-cal-utils.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/libexchangemapi/exchange-mapi-cal-utils.c b/src/libexchangemapi/exchange-mapi-cal-utils.c
index 9cc9aca..398205c 100644
--- a/src/libexchangemapi/exchange-mapi-cal-utils.c
+++ b/src/libexchangemapi/exchange-mapi-cal-utils.c
@@ -988,12 +988,12 @@ fetch_camel_cal_comp_cb (FetchItemsCallbackData *item_data, gpointer data)
 	ECalComponent *comp = NULL;
 	mapi_id_t mid = 0;
 	icalcomponent *icalcomp = NULL;
-	gchar *str = NULL, *smid = NULL, *fileuri;
+	gchar *str = NULL, *smid = NULL, *filepath;
 
 	g_return_val_if_fail (item_data != NULL, FALSE);
 	g_return_val_if_fail (fccd != NULL, FALSE);
 
-	fileuri = g_filename_to_uri (g_get_tmp_dir (), NULL, NULL);
+	filepath = g_strdup (g_get_tmp_dir ());
 
 	if (!comp) {
 		/* read component from a mail, if not found in the calendar */
@@ -1005,13 +1005,12 @@ fetch_camel_cal_comp_cb (FetchItemsCallbackData *item_data, gpointer data)
 			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);
+							item_data->attachments, filepath, NULL);
 		e_cal_component_set_uid (comp, smid);
 		g_free (smid);
 	}
 
-	g_free (fileuri);
+	g_free (filepath);
 
 	icalcomp = e_cal_util_new_top_level ();
 	icalcomponent_set_method (icalcomp, fccd->method);



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