From 356c056292bfa1ab1035cb42a9fd72f1e5fc9884 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(+) 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 v1.2.3