[evolution-data-server] [IMAPx] Sort array of UIDs before syncing changes to the server



commit 32b473e0151d37b7894bdb768a8774aa32dc4b1c
Author: Milan Crha <mcrha redhat com>
Date:   Thu Jan 25 09:42:11 2018 +0100

    [IMAPx] Sort array of UIDs before syncing changes to the server
    
    This way the command can use ranges, instead of name each UID separately,
    thus can eventually make the command shorter.

 src/camel/providers/imapx/camel-imapx-server.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/camel/providers/imapx/camel-imapx-server.c b/src/camel/providers/imapx/camel-imapx-server.c
index b0bf228..c309672 100644
--- a/src/camel/providers/imapx/camel-imapx-server.c
+++ b/src/camel/providers/imapx/camel-imapx-server.c
@@ -5423,6 +5423,7 @@ camel_imapx_server_sync_changes_sync (CamelIMAPXServer *is,
                return TRUE;
        }
 
+       camel_folder_sort_uids (folder, changed_uids);
        stamps = g_hash_table_new_full (g_str_hash, g_str_equal, (GDestroyNotify) camel_pstring_free, NULL);
 
        if (can_influence_flags) {


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