aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/em-utils.c')
-rw-r--r--mail/em-utils.c5
1 files changed, 3 insertions, 2 deletions
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);