[evolution-data-server] Bug #677183 - maildir account doesn't open



commit 3ad2693d483fede010d3230edc090c9aadb82f89
Author: Milan Crha <mcrha redhat com>
Date:   Thu Jun 7 13:13:49 2012 +0200

    Bug #677183 - maildir account doesn't open

 .../evolution-source-registry-migrate-sources.c    |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
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) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]