From fa3dd0054fe2bb2eb17d50540473b82b360f0b4a Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Thu, 22 Feb 2001 14:58:56 +0000 Subject: #define this as the set of all IMAP system flags * providers/imap/camel-imap-summary.h (CAMEL_IMAP_SERVER_FLAGS): #define this as the set of all IMAP system flags * providers/imap/camel-imap-folder.c (sync_message): after syncing flags, set server_flags to (flags & CAMEL_IMAP_SERVER_FLAGS) rather than just "flags", since any other flags won't have been synced. Prevents the CAMEL_MESSAGE_ATTACHMENTS flag from getting lost. svn path=/trunk/; revision=8344 --- camel/providers/imap/camel-imap-folder.c | 3 ++- camel/providers/imap/camel-imap-summary.h | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'camel/providers/imap') diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c index 87807bcbe5..f72201ca63 100644 --- a/camel/providers/imap/camel-imap-folder.c +++ b/camel/providers/imap/camel-imap-folder.c @@ -434,7 +434,8 @@ sync_message (CamelImapStore *store, CamelFolder *folder, camel_imap_response_free (response); mi->flags &= ~CAMEL_MESSAGE_FOLDER_FLAGGED; - ((CamelImapMessageInfo *)mi)->server_flags = mi->flags; + ((CamelImapMessageInfo *)mi)->server_flags = + mi->flags & CAMEL_IMAP_SERVER_FLAGS; } static void diff --git a/camel/providers/imap/camel-imap-summary.h b/camel/providers/imap/camel-imap-summary.h index e3ee2ff13b..7ad1e3f4e8 100644 --- a/camel/providers/imap/camel-imap-summary.h +++ b/camel/providers/imap/camel-imap-summary.h @@ -32,6 +32,12 @@ #define CAMEL_IMAP_SUMMARY_CLASS(klass) CAMEL_CHECK_CLASS_CAST (klass, camel_imap_summary_get_type (), CamelImapSummaryClass) #define CAMEL_IS_IMAP_SUMMARY(obj) CAMEL_CHECK_TYPE (obj, camel_imap_summary_get_type ()) +#define CAMEL_IMAP_SERVER_FLAGS (CAMEL_MESSAGE_ANSWERED | \ + CAMEL_MESSAGE_DELETED | \ + CAMEL_MESSAGE_DRAFT | \ + CAMEL_MESSAGE_FLAGGED | \ + CAMEL_MESSAGE_SEEN) + typedef struct _CamelImapSummaryClass CamelImapSummaryClass; typedef struct _CamelImapMessageContentInfo { -- cgit v1.2.3