[evolution-data-server/gnome-3-2] Bug #655167 - Messages moved from IMAP Inbox reappear



commit b70b77d3f8e7adde749786077961114386b67ac6
Author: Michel DÃnzer <daenzer debian org>
Date:   Wed Nov 2 08:36:46 2011 +0100

    Bug #655167 - Messages moved from IMAP Inbox reappear

 camel/providers/imap/camel-imap-folder.c  |   11 +++--------
 camel/providers/imap/camel-imap-summary.h |    4 +++-
 2 files changed, 6 insertions(+), 9 deletions(-)
---
diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c
index 833edd6..8d1b915 100644
--- a/camel/providers/imap/camel-imap-folder.c
+++ b/camel/providers/imap/camel-imap-folder.c
@@ -68,11 +68,6 @@ enum {
 	PROP_CHECK_FOLDER = 0x2500
 };
 
-enum {
-	/* used when moving messages and has real trash folder set with a google account */
-	CAMEL_MESSAGE_IMAP_MOVED = CAMEL_MESSAGE_FOLDER_FLAGGED << 1
-};
-
 extern gint camel_application_is_exiting;
 
 static gboolean imap_rescan (CamelFolder *folder, gint exists, GCancellable *cancellable, GError **error);
@@ -1479,7 +1474,7 @@ get_matching (CamelFolder *folder,
 			}
 		}
 
-		if (deleted_uids && (info->info.flags & (CAMEL_MESSAGE_DELETED | CAMEL_MESSAGE_IMAP_MOVED)) == CAMEL_MESSAGE_DELETED) {
+		if (deleted_uids && (info->info.flags & (CAMEL_MESSAGE_DELETED | CAMEL_IMAP_MESSAGE_MOVED)) == CAMEL_MESSAGE_DELETED) {
 			g_ptr_array_add (deleted_uids, (gpointer) camel_pstring_strdup (camel_message_info_uid (info)));
 			info->info.flags &= ~CAMEL_MESSAGE_DELETED;
 		} else if (junked_uids && (info->info.flags & CAMEL_MESSAGE_JUNK) != 0) {
@@ -1806,7 +1801,7 @@ imap_synchronize_sync (CamelFolder *folder,
 					info->info.flags &= ~CAMEL_MESSAGE_DELETED;
 				}
 
-				info->info.flags &= ~(CAMEL_MESSAGE_FOLDER_FLAGGED | CAMEL_MESSAGE_IMAP_MOVED);
+				info->info.flags &= ~(CAMEL_MESSAGE_FOLDER_FLAGGED | CAMEL_IMAP_MESSAGE_MOVED);
 				((CamelImapMessageInfo *) info)->server_flags =	info->info.flags & CAMEL_IMAP_SERVER_FLAGS;
 				info->info.dirty = TRUE; /* Sync it back to the DB */
 				if (((CamelMessageInfo *) info)->summary)
@@ -2895,7 +2890,7 @@ do_copy (CamelFolder *source,
 					CamelMessageInfoBase *info = (CamelMessageInfoBase *) camel_folder_summary_uid (source->summary, uids->pdata[i]);
 
 					if (info)
-						info->flags |= CAMEL_MESSAGE_IMAP_MOVED;
+						info->flags |= CAMEL_IMAP_MESSAGE_MOVED;
 				}
 			}
 			last = uid;
diff --git a/camel/providers/imap/camel-imap-summary.h b/camel/providers/imap/camel-imap-summary.h
index 53fb245..5ca93fb 100644
--- a/camel/providers/imap/camel-imap-summary.h
+++ b/camel/providers/imap/camel-imap-summary.h
@@ -53,7 +53,9 @@
 G_BEGIN_DECLS
 
 enum {
-	CAMEL_IMAP_MESSAGE_RECENT = 1 << 17
+	CAMEL_IMAP_MESSAGE_RECENT = 1 << 17,
+	/* used when moving messages and has real trash folder set with a google account */
+	CAMEL_IMAP_MESSAGE_MOVED = 1 << 18
 };
 
 typedef struct _CamelImapSummary CamelImapSummary;



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