From 7bcacf89cb24f10253e3e5d786a796b7ee88bfbc Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Mon, 20 Sep 2004 15:21:59 +0000 Subject: handle 'attachment' as well, as per Mozilla's mangling, and the new 2004-08-17 Michael Meeks * 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 --- composer/e-msg-composer.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'composer/e-msg-composer.c') diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 2fd958fe01..e72df878f8 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -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); -- cgit