[evolution-patches] patch to support 'attachment'



Hi there,

	Since this is badly/un-specified; I'd like to support the
'attachment=<uri>' syntax for this, since this makes cross-desktop, and
cross-mozilla/evo standardisation easier here.

	A trivial patch appended; to what branch(es) would one commit
hypothetically ?

	Thanks,

		Michael.

Index: composer/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/composer/ChangeLog,v
retrieving revision 1.656
diff -u -r1.656 ChangeLog
--- composer/ChangeLog	12 Aug 2004 20:36:07 -0000	1.656
+++ composer/ChangeLog	17 Aug 2004 11:13:48 -0000
@@ -1,3 +1,8 @@
+2004-08-17  Michael Meeks  <michael ximian com>
+
+	* e-msg-composer.c (handle_mailto): handle 'attachment' as
+	well, as per Mozilla's mangling, and the new desktop-launch spec.
+
 2004-07-29  Carlos Garnacho Parro  <carlosg gnome org>
 
 	* e-msg-composer-select-file.[ch]: Optionally use GtkFileChooser
Index: composer/e-msg-composer.c
===================================================================
RCS file: /cvs/gnome/evolution/composer/e-msg-composer.c,v
retrieving revision 1.478
diff -u -r1.478 e-msg-composer.c
--- composer/e-msg-composer.c	12 Aug 2004 20:36:07 -0000	1.478
+++ composer/e-msg-composer.c	17 Aug 2004 11:13:58 -0000
@@ -4167,7 +4167,8 @@
 						body[nwritten] = '\0';
 					}
 				}
-			} else if (!g_ascii_strcasecmp (header, "attach")) {
+			} else if (!g_ascii_strcasecmp (header, "attach") ||
+				   !g_ascii_strcasecmp (header, "attachment")) {
 				/* Change file url to absolute path */
 				if (!strncasecmp (content, "file:", 5)) {
 					url = camel_url_new (content, NULL);


-- 
 michael ximian com  <><, Pseudo Engineer, itinerant idiot





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