handle 'attachment' as well, as per Mozilla's mangling, and the new

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.
	[ this was approved months ago, but somehow never got committed ]
	** See bug #65592

svn path=/trunk/; revision=27309
This commit is contained in:
Michael Meeks
2004-09-20 15:21:59 +00:00
committed by Michael Meeks
parent c046815400
commit 7bcacf89cb
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,10 @@
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.
[ this was approved months ago, but somehow never got committed ]
** See bug #65592
2004-09-08 Not Zed <NotZed@Ximian.com>
** See bug #64454.

View File

@ -4168,9 +4168,10 @@ handle_mailto (EMsgComposer *composer, const char *mailto)
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)) {
if (!g_ascii_strncasecmp (content, "file:", 5)) {
url = camel_url_new (content, NULL);
e_msg_composer_attachment_bar_attach (E_MSG_COMPOSER_ATTACHMENT_BAR (composer->attachment_bar),
url->path);