From 41f4d710b3daff0b5730d23f5fc27c2df89e4b18 Mon Sep 17 00:00:00 2001 From: Chenthill Palanisamy Date: Tue, 9 Mar 2010 12:52:07 +0530 Subject: [PATCH] Bug 612260 - [imapx] Moving a message to other folder marks it as unread --- camel/providers/imapx/camel-imapx-server.c | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.7.4