aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/em-utils.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index cfedf6e6da..47d828b224 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-12 Jeffrey Stedfast <fejj@ximian.com>
+
+ * em-utils.c (em_uri_to_camel): If the provider is unavailable,
+ return euri like the other fail cases. Fixes bug #56846.
+
2004-04-10 Francisco Javier F. Serrador <serrador@cvs.gnome.org>
* evolution-mail.schemas.in.in.h: Correct typo s/hight/height/ at
diff --git a/mail/em-utils.c b/mail/em-utils.c
index 60d2bd659b..1225604bd7 100644
--- a/mail/em-utils.c
+++ b/mail/em-utils.c
@@ -2652,8 +2652,9 @@ char *em_uri_to_camel(const char *euri)
}
service = account->source;
- provider = camel_provider_get(service->url, NULL);
-
+ if (!(provider = camel_provider_get (service->url, NULL)))
+ return g_strdup (euri);
+
curl = camel_url_new(service->url, NULL);
if (provider->url_flags & CAMEL_URL_FRAGMENT_IS_PATH)
camel_url_set_fragment(curl, eurl->path[0]=='/'?eurl->path+1:eurl->path);