[evolution-data-server/gnome-3-8] Bug #699811 - Moved IMAPx messages reappear
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/gnome-3-8] Bug #699811 - Moved IMAPx messages reappear
- Date: Mon, 13 May 2013 14:31:14 +0000 (UTC)
commit d6b200b9e83f6ce07f3287c5d2ac7f4e0ba19fa9
Author: Milan Crha <mcrha redhat com>
Date: Mon May 13 16:29:58 2013 +0200
Bug #699811 - Moved IMAPx messages reappear
This affected users whom had configured a real Trash folder.
camel/camel-imapx-server.c | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/camel/camel-imapx-server.c b/camel/camel-imapx-server.c
index eb741a7..6ecf521 100644
--- a/camel/camel-imapx-server.c
+++ b/camel/camel-imapx-server.c
@@ -6674,10 +6674,15 @@ imapx_command_sync_changes_done (CamelIMAPXServer *is,
if (!xinfo)
continue;
- if (data->remove_deleted_flags)
- xinfo->info.flags &= ~CAMEL_MESSAGE_DELETED;
xinfo->server_flags = xinfo->info.flags & CAMEL_IMAPX_SERVER_FLAGS;
- xinfo->info.flags &= ~CAMEL_MESSAGE_FOLDER_FLAGGED;
+ if (!data->remove_deleted_flags ||
+ !(xinfo->info.flags & CAMEL_MESSAGE_DELETED)) {
+ xinfo->info.flags &= ~CAMEL_MESSAGE_FOLDER_FLAGGED;
+ } else {
+ /* to stare back the \Deleted flag */
+ xinfo->server_flags &= ~CAMEL_MESSAGE_DELETED;
+ xinfo->info.flags |= CAMEL_MESSAGE_FOLDER_FLAGGED;
+ }
xinfo->info.dirty = TRUE;
camel_flag_list_copy (&xinfo->server_user_flags, &xinfo->info.user_flags);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]