aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-session.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-session.c')
-rw-r--r--camel/camel-session.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/camel/camel-session.c b/camel/camel-session.c
index 4e74c1bd9e..4a93534d6f 100644
--- a/camel/camel-session.c
+++ b/camel/camel-session.c
@@ -425,6 +425,12 @@ get_service (CamelSession *session, const char *url_string,
return NULL;
}
+ /* If the provider doesn't use paths but the URL contains one,
+ * ignore it.
+ */
+ if (url->path && !CAMEL_PROVIDER_ALLOWS (provider, CAMEL_URL_PART_PATH))
+ camel_url_set_path (url, NULL);
+
/* Now look up the service in the provider's cache */
service = g_hash_table_lookup (provider->service_cache[type], url);
if (service != NULL) {