aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-folder-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/e-mail-folder-utils.c')
-rw-r--r--mail/e-mail-folder-utils.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/mail/e-mail-folder-utils.c b/mail/e-mail-folder-utils.c
index 6332e9c1ae..f6c295d040 100644
--- a/mail/e-mail-folder-utils.c
+++ b/mail/e-mail-folder-utils.c
@@ -248,8 +248,13 @@ e_mail_folder_uri_parse (CamelSession *session,
if (g_strcmp0 (url->protocol, "folder") == 0) {
if (url->host != NULL) {
- gchar *uid = g_strdup (url->host);
- camel_url_decode (uid);
+ gchar *uid;
+
+ if (!url->user || !*url->user)
+ uid = g_strdup (url->host);
+ else
+ uid = g_strconcat (url->user, "@", url->host, NULL);
+
service = camel_session_get_service (session, uid);
g_free (uid);
}