[evolution-ews] Avoid the filepath type & use proper namespace when creating attachments



commit ca86a03c92a1bbd8a7f2808cfaa7fefcb1bb3d7f
Author: Or Goshen <orx goshen intel com>
Date:   Thu Jun 16 15:57:17 2011 +0300

    Avoid the filepath type & use proper namespace when creating attachments

 src/server/e-ews-connection.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/server/e-ews-connection.c b/src/server/e-ews-connection.c
index 104392a..fca0684 100644
--- a/src/server/e-ews-connection.c
+++ b/src/server/e-ews-connection.c
@@ -2766,6 +2766,9 @@ e_ews_connection_attach_file (ESoapMessage *msg,
 	const char *filename;
 	int fd;
 
+	/* get over the "protocol" 'file://' */
+	filepath += 7;
+
 	if (stat (filepath, &st) == -1) {
 		g_warning ("Error while calling stat() on %s\n", filepath);
 		return;
@@ -2789,7 +2792,7 @@ e_ews_connection_attach_file (ESoapMessage *msg,
 	if (filename) filename++;
 	else filename = filepath;
 
-	e_soap_message_start_element (msg, "FileAttachment", "messages", NULL);
+	e_soap_message_start_element (msg, "FileAttachment", NULL, NULL);
 
 	e_ews_message_write_string_parameter (msg, "Name", NULL, filename);
 



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