[evolution-data-server] [IMAPX] Missing folder operation finish call at imapx_search_process_criteria()



commit 3d9dd14d5b8a9a94b7c9235d7eb34b05028e1b2d
Author: Milan Crha <mcrha redhat com>
Date:   Tue May 6 12:13:19 2014 +0200

    [IMAPX] Missing folder operation finish call at imapx_search_process_criteria()
    
    Once the server is opened for certain folder it should also claim
    the folder operation is over, which was missing here.

 camel/providers/imapx/camel-imapx-search.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-search.c b/camel/providers/imapx/camel-imapx-search.c
index e99c7a4..af59e4f 100644
--- a/camel/providers/imapx/camel-imapx-search.c
+++ b/camel/providers/imapx/camel-imapx-search.c
@@ -172,14 +172,17 @@ imapx_search_process_criteria (CamelSExp *sexp,
                imapx_server = camel_imapx_store_ref_server (imapx_store, folder_name, TRUE, 
imapx_search->priv->cancellable, &local_error);
                if (imapx_server) {
                        uids = camel_imapx_server_uid_search (imapx_server, mailbox, criteria->str, 
imapx_search->priv->cancellable, &local_error);
+                       camel_imapx_store_folder_op_done (imapx_store, imapx_server, folder_name);
 
                        while (!uids && g_error_matches (local_error, CAMEL_IMAPX_SERVER_ERROR, 
CAMEL_IMAPX_SERVER_ERROR_TRY_RECONNECT)) {
                                g_clear_error (&local_error);
                                g_clear_object (&imapx_server);
 
                                imapx_server = camel_imapx_store_ref_server (imapx_store, folder_name, TRUE, 
imapx_search->priv->cancellable, &local_error);
-                               if (imapx_server)
+                               if (imapx_server) {
                                        uids = camel_imapx_server_uid_search (imapx_server, mailbox, 
criteria->str, imapx_search->priv->cancellable, &local_error);
+                                       camel_imapx_store_folder_op_done (imapx_store, imapx_server, 
folder_name);
+                               }
                        }
                }
 


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