[evolution-mapi] Messages moved on the server not deleted from local cache



commit c3e675ddc28bcf515cefb763371a0a80a07f9c5a
Author: Milan Crha <mcrha redhat com>
Date:   Wed Jun 21 16:17:31 2017 +0200

    Messages moved on the server not deleted from local cache
    
    When transferring messages within one server the local cache
    of the source folder did not have deleted the moved message,
    while it was no longer available in that folder.

 src/camel/camel-mapi-folder.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/camel/camel-mapi-folder.c b/src/camel/camel-mapi-folder.c
index e72bed8..e560ce8 100644
--- a/src/camel/camel-mapi-folder.c
+++ b/src/camel/camel-mapi-folder.c
@@ -1869,6 +1869,7 @@ mapi_folder_transfer_messages_to_sync (CamelFolder *source,
                for (i = 0; i < uids->len; i++) {
                        camel_folder_summary_remove_uid (source_summary, uids->pdata[i]);
                        camel_folder_change_info_remove_uid (changes, uids->pdata[i]);
+                       camel_data_cache_remove (src_mapi_folder->cache, "cache", uids->pdata[i], NULL);
                }
                camel_folder_changed (source, changes);
                camel_folder_change_info_free (changes);


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