From 85c5b26c407159e9bba4ad4d5e8e14a103a1d188 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 12 Apr 2004 15:35:25 +0000 Subject: If the provider is unavailable, return euri like the other fail cases. 2004-04-12 Jeffrey Stedfast * em-utils.c (em_uri_to_camel): If the provider is unavailable, return euri like the other fail cases. Fixes bug #56846. svn path=/trunk/; revision=25415 --- mail/em-utils.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mail/em-utils.c') 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); -- cgit