From cda5e5498b457c2f3bfb939a0093a477500312b2 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Thu, 2 Dec 2010 13:18:48 +0100 Subject: Bug #627176 - Do not spawn other process when clicking mailto: uri --- mail/e-mail-display.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'mail') diff --git a/mail/e-mail-display.c b/mail/e-mail-display.c index 58f4824799..30608748a1 100644 --- a/mail/e-mail-display.c +++ b/mail/e-mail-display.c @@ -266,6 +266,14 @@ mail_display_link_clicked (GtkHTML *html, priv->formatter->header_wrap_flags = flags; em_format_queue_redraw (EM_FORMAT (priv->formatter)); + } else if (g_ascii_strncasecmp (uri, "mailto:", 7) == 0) { + EMFormat *format = EM_FORMAT (priv->formatter); + CamelFolder *folder = NULL; + + if (format && format->folder) + folder = format->folder; + + em_utils_compose_new_message_with_mailto (e_shell_get_default (), uri, folder ? camel_folder_get_uri (folder) : NULL); } else if (*uri == '#') gtk_html_jump_to_anchor (html, uri + 1); -- cgit