[evolution-mapi/gnome-3-0] Bug #655962 - Changed unread state forgotten on message move



commit 70b02fa8086a6c07fbb96355ff34922c3e63ccbc
Author: Milan Crha <mcrha redhat com>
Date:   Thu Aug 4 16:36:16 2011 +0200

    Bug #655962 - Changed unread state forgotten on message move

 src/camel/camel-mapi-folder.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/camel/camel-mapi-folder.c b/src/camel/camel-mapi-folder.c
index 9c8eca4..a6d1846 100644
--- a/src/camel/camel-mapi-folder.c
+++ b/src/camel/camel-mapi-folder.c
@@ -1708,6 +1708,12 @@ mapi_folder_transfer_messages_to_sync (CamelFolder *source,
 	GSList *src_msg_ids = NULL;
 	gboolean success = TRUE;
 
+	if (CAMEL_IS_MAPI_FOLDER (source)) {
+		/* make sure changed flags are written into the server */
+		if (!mapi_folder_synchronize_sync (source, FALSE, cancellable, error))
+			return FALSE;
+	}
+
 	if (!CAMEL_IS_MAPI_FOLDER (source) || !CAMEL_IS_MAPI_FOLDER (destination) ||
 	    (CAMEL_MAPI_FOLDER (source)->type & CAMEL_MAPI_FOLDER_PUBLIC) != 0 ||
 	    (CAMEL_MAPI_FOLDER (destination)->type & CAMEL_MAPI_FOLDER_PUBLIC) != 0) {



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