[evolution-data-server] Bug 612260 - [imapx] Moving a message to other folder marks it as unread



commit 41f4d710b3daff0b5730d23f5fc27c2df89e4b18
Author: Chenthill Palanisamy <pchenthill novell com>
Date:   Tue Mar 9 12:52:07 2010 +0530

    Bug 612260 - [imapx] Moving a message to other folder marks it as unread

 camel/providers/imapx/camel-imapx-server.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index 2d5d6f4..ac5c39b 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -2490,6 +2490,10 @@ cleanup:
 static void
 imapx_job_copy_messages_start (CamelIMAPXServer *is, CamelIMAPXJob *job)
 {
+	camel_imapx_server_sync_changes (is, job->folder, job->ex);
+	if (camel_exception_is_set (job->ex))
+		imapx_job_done (is, job);
+
 	g_ptr_array_sort (job->u.copy_messages.uids, (GCompareFunc) imapx_uids_array_cmp);
 	imapx_uidset_init(&job->u.copy_messages.uidset, 0, MAX_COMMAND_LEN);
 	imapx_command_copy_messages_step_start (is, job, 0);
@@ -3762,6 +3766,7 @@ camel_imapx_server_copy_message (CamelIMAPXServer *is, CamelFolder *source, Came
 	job->u.copy_messages.dest = dest;
 	job->u.copy_messages.uids = uids;
 	job->u.copy_messages.delete_originals = delete_originals;
+	job->ex = ex;
 
 	camel_object_ref(source);
 	camel_object_ref (dest);



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