[evolution-data-server] [IMAPx] Not all local changes saved to the server



commit 041b63d964b28e50d7de1cd1982de5fb90d57a52
Author: Milan Crha <mcrha redhat com>
Date:   Wed Aug 30 10:11:26 2017 +0200

    [IMAPx] Not all local changes saved to the server
    
    IMAPx uses camel_message_info_get_folder_flagged_stamp() also to recognize
    which messages are flagged (locally changed) and which are which are only
    dirty (requires save to summary). The thing is that the initial
    folder-flagged-stamp can be zero, which means g_hash_table_lookup()
    use here behaving like there is no value, even the UID is there.

 src/camel/providers/imapx/camel-imapx-server.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/camel/providers/imapx/camel-imapx-server.c b/src/camel/providers/imapx/camel-imapx-server.c
index e753789..8af042b 100644
--- a/src/camel/providers/imapx/camel-imapx-server.c
+++ b/src/camel/providers/imapx/camel-imapx-server.c
@@ -5509,7 +5509,7 @@ camel_imapx_server_sync_changes_sync (CamelIMAPXServer *is,
 
                                /* the 'stamps' hash table contains only those uid-s,
                                   which were also flagged, not only 'dirty' */
-                               if (!g_hash_table_lookup (stamps, changed_uids->pdata[i]))
+                               if (!g_hash_table_contains (stamps, changed_uids->pdata[i]))
                                        continue;
 
                                info = camel_folder_summary_get (camel_folder_get_folder_summary (folder), 
changed_uids->pdata[i]);
@@ -5645,7 +5645,7 @@ camel_imapx_server_sync_changes_sync (CamelIMAPXServer *is,
 
                        /* the 'stamps' hash table contains only those uid-s,
                           which were also flagged, not only 'dirty' */
-                       if (!g_hash_table_lookup (stamps, uid))
+                       if (!g_hash_table_contains (stamps, uid))
                                continue;
 
                        info = camel_folder_summary_get (folder_summary, uid);


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