diff --git a/src/camel/camel-mapi-folder.c b/src/camel/camel-mapi-folder.c
index 8088966..4945d75 100644
--- a/src/camel/camel-mapi-folder.c
+++ b/src/camel/camel-mapi-folder.c
@@ -1707,6 +1707,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) {
