From: Milan Crha Date: Thu, 7 Jun 2012 11:13:49 +0000 (+0200) Subject: Bug #677183 - maildir account doesn't open X-Git-Tag: upstream/3.7.4~818 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3ad2693d483fede010d3230edc090c9aadb82f89;p=platform%2Fupstream%2Fevolution-data-server.git Bug #677183 - maildir account doesn't open --- diff --git a/services/evolution-source-registry/evolution-source-registry-migrate-sources.c b/services/evolution-source-registry/evolution-source-registry-migrate-sources.c index d21caa2..378b8fc 100644 --- a/services/evolution-source-registry/evolution-source-registry-migrate-sources.c +++ b/services/evolution-source-registry/evolution-source-registry-migrate-sources.c @@ -1201,6 +1201,17 @@ migrate_parse_url (ParseData *parse_data, &url->params, (GDataForeachFunc) migrate_parse_url_foreach, &foreach_data); + /* Local providers store their "path" as the url->path */ + if (g_strcmp0 (url->protocol, "mh") == 0 || + g_strcmp0 (url->protocol, "mbox") == 0 || + g_strcmp0 (url->protocol, "maildir") == 0 || + g_strcmp0 (url->protocol, "spool") == 0 || + g_strcmp0 (url->protocol, "spooldir") == 0) + g_key_file_set_string ( + backend_key_file, + group_name, + "Path", url->path); + uid = e_server_side_source_uid_from_file (backend_file, error); if (uid != NULL) {