diff options
author | Milan Crha <mcrha@redhat.com> | 2010-12-02 20:18:48 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:41:06 +0800 |
commit | 356c056292bfa1ab1035cb42a9fd72f1e5fc9884 (patch) | |
tree | 28797989790359adf669d4cb5f6c764db468073d | |
parent | c9b4088d9ca64ed5582aa13df276838e8bc5bc97 (diff) | |
download | gsoc2013-evolution-356c056292bfa1ab1035cb42a9fd72f1e5fc9884.tar.gz gsoc2013-evolution-356c056292bfa1ab1035cb42a9fd72f1e5fc9884.tar.zst gsoc2013-evolution-356c056292bfa1ab1035cb42a9fd72f1e5fc9884.zip |
Bug #627176 - Do not spawn other process when clicking mailto: uri
-rw-r--r-- | mail/e-mail-display.c | 8 |
1 files changed, 8 insertions, 0 deletions
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); |