aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-05-16 18:40:40 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:42:16 +0800
commit42580e1802fce5e83008c6c79d64ea2a9bedafe9 (patch)
treefeaa9dc29e425f72dcfa76d6a86eaadd4b45ffa7 /composer
parente54a663364480a6b733069e99b43fe2f0794bbde (diff)
downloadgsoc2013-evolution-42580e1802fce5e83008c6c79d64ea2a9bedafe9.tar
gsoc2013-evolution-42580e1802fce5e83008c6c79d64ea2a9bedafe9.tar.gz
gsoc2013-evolution-42580e1802fce5e83008c6c79d64ea2a9bedafe9.tar.bz2
gsoc2013-evolution-42580e1802fce5e83008c6c79d64ea2a9bedafe9.tar.lz
gsoc2013-evolution-42580e1802fce5e83008c6c79d64ea2a9bedafe9.tar.xz
gsoc2013-evolution-42580e1802fce5e83008c6c79d64ea2a9bedafe9.tar.zst
gsoc2013-evolution-42580e1802fce5e83008c6c79d64ea2a9bedafe9.zip
Correct garbled mailto: uris passed in through GApplication interface
Diffstat (limited to 'composer')
-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);