[evolution-data-server/evolution-data-server-3-12] [IMAPX] Missing folder operation finish call at imapx_search_process_criteria()
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/evolution-data-server-3-12] [IMAPX] Missing folder operation finish call at imapx_search_process_criteria()
- Date: Tue, 6 May 2014 10:43:38 +0000 (UTC)
commit ed11cfcde9eecc6b4ef574b549d0cb16bbbe13f0
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 793e24c..bf82efb 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]