aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-05-16 18:40:40 +0800
committerMilan Crha <mcrha@redhat.com>2011-05-16 18:40:40 +0800
commit94d5fb1b664ab38790ba620f7d2c6d585b666c91 (patch)
tree6dc0428b3b21fd10aea137f5576eae61b7302309 /composer/e-msg-composer.c
parent436d82ca147c0e81318a1177b47093d3cc801547 (diff)
downloadgsoc2013-evolution-94d5fb1b664ab38790ba620f7d2c6d585b666c91.tar
gsoc2013-evolution-94d5fb1b664ab38790ba620f7d2c6d585b666c91.tar.gz
gsoc2013-evolution-94d5fb1b664ab38790ba620f7d2c6d585b666c91.tar.bz2
gsoc2013-evolution-94d5fb1b664ab38790ba620f7d2c6d585b666c91.tar.lz
gsoc2013-evolution-94d5fb1b664ab38790ba620f7d2c6d585b666c91.tar.xz
gsoc2013-evolution-94d5fb1b664ab38790ba620f7d2c6d585b666c91.tar.zst
gsoc2013-evolution-94d5fb1b664ab38790ba620f7d2c6d585b666c91.zip
Correct garbled mailto: uris passed in through GApplication interface
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r--composer/e-msg-composer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index 74a36cce44..e4eb1ced71 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -3921,6 +3921,10 @@ handle_mailto (EMsgComposer *composer, const gchar *mailto)
/* Parse recipients (everything after ':' until '?' or eos). */
p = buf + 7;
+ /* skip leading "///" which are added when passing "mailto:user@server.com"
+ from the outside, after porting EShell to GApplication */
+ if (g_str_has_prefix (p, "///"))
+ p += 3;
len = strcspn (p, "?");
if (len) {
content = g_strndup (p, len);