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/ChangeLog | 5 +++++ mail/em-utils.c | 5 +++-- 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 + + * 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 * 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); -- cgit