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



commit e0eafe77ea30e7429ebd8ecf8fb68d7f88519cc1
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 612a009..4dea12a 100644
--- a/src/camel/providers/imapx/camel-imapx-server.c
+++ b/src/camel/providers/imapx/camel-imapx-server.c
@@ -5421,6 +5421,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]