aboutsummaryrefslogtreecommitdiffstats
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
parent4ed1140a6e81275c07860120c493b402e2613343 (diff)
downloadgsoc2013-evolution-4609348bf23101ace41a984755bddd939ba7f4b7.tar
gsoc2013-evolution-4609348bf23101ace41a984755bddd939ba7f4b7.tar.gz
gsoc2013-evolution-4609348bf23101ace41a984755bddd939ba7f4b7.tar.bz2
gsoc2013-evolution-4609348bf23101ace41a984755bddd939ba7f4b7.tar.lz
gsoc2013-evolution-4609348bf23101ace41a984755bddd939ba7f4b7.tar.xz
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
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/em-utils.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index f26786b480..f679c1b92d 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
2004-03-22 Not Zed <NotZed@Ximian.com>
* em-format.c:
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));