aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Meeks <michael@ximian.com>2004-09-20 23:21:59 +0800
committerMichael Meeks <michael@src.gnome.org>2004-09-20 23:21:59 +0800
commit7bcacf89cb24f10253e3e5d786a796b7ee88bfbc (patch)
tree43e7b960ac13c6000691da1df3c1fd80890d74e9
parentc0468154002e682401fe1b91fd01138f36dee66e (diff)
downloadgsoc2013-evolution-7bcacf89cb24f10253e3e5d786a796b7ee88bfbc.tar
gsoc2013-evolution-7bcacf89cb24f10253e3e5d786a796b7ee88bfbc.tar.gz
gsoc2013-evolution-7bcacf89cb24f10253e3e5d786a796b7ee88bfbc.tar.bz2
gsoc2013-evolution-7bcacf89cb24f10253e3e5d786a796b7ee88bfbc.tar.lz
gsoc2013-evolution-7bcacf89cb24f10253e3e5d786a796b7ee88bfbc.tar.xz
gsoc2013-evolution-7bcacf89cb24f10253e3e5d786a796b7ee88bfbc.tar.zst
gsoc2013-evolution-7bcacf89cb24f10253e3e5d786a796b7ee88bfbc.zip
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
-rw-r--r--composer/ChangeLog7
-rw-r--r--composer/e-msg-composer.c5
2 files changed, 10 insertions, 2 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index 9efd0c7769..edd6395386 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -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.
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);