aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-12-02 20:18:48 +0800
committerMilan Crha <mcrha@redhat.com>2010-12-02 20:18:48 +0800
commitcda5e5498b457c2f3bfb939a0093a477500312b2 (patch)
tree8dc3b80dce701ad77404633c2e1547ad23ec3268 /mail
parentb449c0af436eb055c742a76b428fe7fd5ef312d8 (diff)
downloadgsoc2013-evolution-cda5e5498b457c2f3bfb939a0093a477500312b2.tar
gsoc2013-evolution-cda5e5498b457c2f3bfb939a0093a477500312b2.tar.gz
gsoc2013-evolution-cda5e5498b457c2f3bfb939a0093a477500312b2.tar.bz2
gsoc2013-evolution-cda5e5498b457c2f3bfb939a0093a477500312b2.tar.lz
gsoc2013-evolution-cda5e5498b457c2f3bfb939a0093a477500312b2.tar.xz
gsoc2013-evolution-cda5e5498b457c2f3bfb939a0093a477500312b2.tar.zst
gsoc2013-evolution-cda5e5498b457c2f3bfb939a0093a477500312b2.zip
Bug #627176 - Do not spawn other process when clicking mailto: uri
Diffstat (limited to 'mail')
-rw-r--r--mail/e-mail-display.c8
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);