[evolution-ews/gnome-3-4] Bug #664637 - Deleted messages appear in Inbox



commit 84b80282541125d2e90ea481535be6d5b258987a
Author: Milan Crha <mcrha redhat com>
Date:   Mon Apr 23 11:35:30 2012 +0200

    Bug #664637 - Deleted messages appear in Inbox

 src/camel/camel-ews-folder.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/camel/camel-ews-folder.c b/src/camel/camel-ews-folder.c
index 4b37de4..6ad1478 100644
--- a/src/camel/camel-ews-folder.c
+++ b/src/camel/camel-ews-folder.c
@@ -821,6 +821,9 @@ ews_synchronize_sync (CamelFolder *folder,
 		if (flags_changed & (CAMEL_MESSAGE_SEEN | CAMEL_MESSAGE_ANSWERED | CAMEL_MESSAGE_FORWARDED | CAMEL_MESSAGE_FLAGGED)) {
 			mi_list = g_slist_append (mi_list, mi);
 			mi_list_len++;
+
+			if (flags_changed & CAMEL_MESSAGE_DELETED)
+				deleted_uids = g_slist_prepend (deleted_uids, (gpointer) camel_pstring_strdup (uids->pdata[i]));
 		} else if (flags_changed & CAMEL_MESSAGE_DELETED) {
 			deleted_uids = g_slist_prepend (deleted_uids, (gpointer) camel_pstring_strdup (uids->pdata[i]));
 			camel_message_info_free (mi);



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