[evolution-patches] fix for bug #44065
- From: Jeffrey Stedfast <fejj ximian com>
- To: evolution-patches ximian com
- Subject: [evolution-patches] fix for bug #44065
- Date: 25 Jun 2003 16:39:24 -0400
--
Jeffrey Stedfast
Evolution Hacker - Ximian, Inc.
fejj ximian com - www.ximian.com
? 43241.patch
? 44065.patch
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/composer/ChangeLog,v
retrieving revision 1.544
diff -u -r1.544 ChangeLog
--- ChangeLog 19 Jun 2003 16:59:02 -0000 1.544
+++ ChangeLog 25 Jun 2003 20:21:30 -0000
@@ -1,3 +1,8 @@
+2003-06-25 Jeffrey Stedfast <fejj ximian com>
+
+ * e-msg-composer.c (handle_mailto): Handle file: uri's for
+ attachments. Fixes bug #44065.
+
2003-06-19 Larry Ewing <lewing ximian com>
* listener.c (insert_paragraph_after): free the return value.
Index: e-msg-composer.c
===================================================================
RCS file: /cvs/gnome/evolution/composer/e-msg-composer.c,v
retrieving revision 1.395
diff -u -r1.395 e-msg-composer.c
--- e-msg-composer.c 18 Jun 2003 17:57:01 -0000 1.395
+++ e-msg-composer.c 25 Jun 2003 20:21:33 -0000
@@ -3882,7 +3882,25 @@
}
}
} else if (!strncasecmp (header, "attach", len)) {
- e_msg_composer_attachment_bar_attach (E_MSG_COMPOSER_ATTACHMENT_BAR (composer->attachment_bar), content);
+ CamelURL *uri;
+ char *path;
+
+ if (!strncasecmp (content, "file:", 5)) {
+ if ((uri = camel_url_new (content, NULL) != NULL)) {
+ /* FIXME: handle the case where the host isn't == localhost? */
+
+ path = uri->path;
+ uri->path = NULL;
+ camel_url_free (uri);
+ } else {
+ path = g_strdup (content);
+ }
+ } else {
+ path = g_strdup (content);
+ }
+
+ e_msg_composer_attachment_bar_attach (E_MSG_COMPOSER_ATTACHMENT_BAR (composer->attachment_bar), path);
+ g_free (path);
} else {
/* add an arbitrary header? */
e_msg_composer_add_header (composer, header, content);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]