[evolution-data-server] I#167 - IMAPx: Can claim existing folders as gone



commit 51a32ae4e84903d83b9df120f91a2709dd43d598
Author: Milan Crha <mcrha redhat com>
Date:   Mon Feb 17 11:24:16 2020 +0100

    I#167 - IMAPx: Can claim existing folders as gone
    
    Closes https://gitlab.gnome.org/GNOME/evolution-data-server/issues/167

 src/camel/providers/imapx/camel-imapx-store.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/camel/providers/imapx/camel-imapx-store.c b/src/camel/providers/imapx/camel-imapx-store.c
index 7f10ac2e2..dfded9913 100644
--- a/src/camel/providers/imapx/camel-imapx-store.c
+++ b/src/camel/providers/imapx/camel-imapx-store.c
@@ -1789,7 +1789,7 @@ sync_folders (CamelIMAPXStore *imapx_store,
         * in imapx_store_process_mailbox_attributes(). */
        g_atomic_int_inc (&imapx_store->priv->syncing_folders);
 
-       update_folder_list = !initial_setup && (!root_folder_path || !*root_folder_path);
+       update_folder_list = !initial_setup && (!root_folder_path || !*root_folder_path) && g_atomic_int_get 
(&imapx_store->priv->syncing_folders) == 1;
 
        if (update_folder_list) {
                g_mutex_lock (&imapx_store->priv->mailboxes_lock);


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