From 1509a85170184895f6c91f9c57167a74af5cd2db Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 10 Apr 2009 11:05:55 +0000 Subject: Convert "import-ics-attachments" plugin to an EAttachmentHandler subclass. svn path=/branches/kill-bonobo/; revision=37510 --- composer/e-msg-composer.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'composer/e-msg-composer.c') diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index ad61b1b461..e8375d8b85 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -3419,7 +3419,10 @@ handle_mailto (EMsgComposer *composer, const gchar *mailto) !g_ascii_strcasecmp (header, "attachment")) { EAttachment *attachment; - attachment = e_attachment_new_for_uri (content); + if (g_ascii_strncasecmp (content, "file:", 5) == 0) + attachment = e_attachment_new_for_uri (content); + else + attachment = e_attachment_new_for_path (content); e_attachment_store_add_attachment (store, attachment); e_attachment_load_async ( attachment, (GAsyncReadyCallback) -- cgit v1.2.3