[evolution-data-server] Bug 736040 - Local Drafts folder is displayed twice after the first run



commit 55561178749fd65cbbd0711dd9e0e4845f8cc51d
Author: Milan Crha <mcrha redhat com>
Date:   Wed Mar 4 18:06:49 2015 +0100

    Bug 736040 - Local Drafts folder is displayed twice after the first run

 camel/providers/local/camel-maildir-store.c |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/camel/providers/local/camel-maildir-store.c b/camel/providers/local/camel-maildir-store.c
index a2a6b04..2c53329 100644
--- a/camel/providers/local/camel-maildir-store.c
+++ b/camel/providers/local/camel-maildir-store.c
@@ -202,11 +202,27 @@ maildir_store_get_folder_sync (CamelStore *store,
        CamelLocalSettings *local_settings;
        CamelSettings *settings;
        CamelService *service;
+       CamelMaildirStore *maildir_store;
        gchar *name, *tmp, *cur, *new, *dir_name;
        gchar *path;
        struct stat st;
        CamelFolder *folder = NULL;
 
+       g_return_val_if_fail (CAMEL_IS_MAILDIR_STORE (store), NULL);
+
+       maildir_store = CAMEL_MAILDIR_STORE (store);
+
+       if (!maildir_store->priv->already_migrated &&
+           maildir_store->priv->can_escape_dots) {
+               CamelFolderInfo *folder_info;
+
+               /* Not interested in any errors here, this is to invoke folder
+                  content migration only. */
+               folder_info = camel_store_get_folder_info_sync (store, NULL, 
CAMEL_STORE_FOLDER_INFO_RECURSIVE, cancellable, NULL);
+               if (folder_info)
+                       camel_folder_info_free (folder_info);
+       }
+
        service = CAMEL_SERVICE (store);
 
        settings = camel_service_ref_settings (service);


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