From 4609348bf23101ace41a984755bddd939ba7f4b7 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Tue, 23 Mar 2004 06:15:08 +0000 Subject: if we get an email uri passed in, just pass it out again, without first 2004-03-23 Not Zed * 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 --- mail/ChangeLog | 5 +++++ mail/em-utils.c | 4 ++++ 2 files changed, 9 insertions(+) (limited to 'mail') 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 + + * 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 * 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)); -- cgit v1.2.3