aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-utils.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-03-23 14:15:08 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-03-23 14:15:08 +0800
commit4609348bf23101ace41a984755bddd939ba7f4b7 (patch)
tree43fbec765c4d298b298a576b97a6a477b82c633e /mail/em-utils.c
parent4ed1140a6e81275c07860120c493b402e2613343 (diff)
downloadgsoc2013-evolution-4609348bf23101ace41a984755bddd939ba7f4b7.tar.gz
gsoc2013-evolution-4609348bf23101ace41a984755bddd939ba7f4b7.tar.zst
gsoc2013-evolution-4609348bf23101ace41a984755bddd939ba7f4b7.zip
if we get an email uri passed in, just pass it out again, without first
2004-03-23 Not Zed <NotZed@Ximian.com> * em-utils.c (em_uri_from_camel): if we get an email uri passed in, just pass it out again, without first going to camel to do it. svn path=/trunk/; revision=25150
Diffstat (limited to 'mail/em-utils.c')
-rw-r--r--mail/em-utils.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mail/em-utils.c b/mail/em-utils.c
index 303b64fac4..0453c50ef7 100644
--- a/mail/em-utils.c
+++ b/mail/em-utils.c
@@ -2555,6 +2555,10 @@ char *em_uri_from_camel(const char *curi)
char *euri, *tmp;
CamelProvider *provider;
+ /* Easiest solution to code that shouldnt be calling us */
+ if (!strncmp(curi, "email:", 6))
+ return g_strdup(curi);
+
provider = camel_provider_get(curi, NULL);
if (provider == NULL) {
d(printf("em uri from camel failed '%s'\n", curi));