[evolution-data-server/evolution-data-server-3-12] [IMAPx] Keep store summary's flags in sync with mailbox flags



commit 8f72d4b4d224262a1101746bb1e8f3f773291c86
Author: Milan Crha <mcrha redhat com>
Date:   Wed Apr 23 15:01:48 2014 +0200

    [IMAPx] Keep store summary's flags in sync with mailbox flags
    
    This way mailbox attributes like \NoSelect gets in sync with
    folder info flags, which makes it work properly, the non-selectable
    folders will not be updated (tested with GMail's "[GMail]" folder).

 camel/providers/imapx/camel-imapx-store.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-store.c b/camel/providers/imapx/camel-imapx-store.c
index b86ee06..526a5a3 100644
--- a/camel/providers/imapx/camel-imapx-store.c
+++ b/camel/providers/imapx/camel-imapx-store.c
@@ -455,10 +455,9 @@ imapx_store_process_mailbox_attributes (CamelIMAPXStore *store,
                mailbox_was_subscribed = FALSE;
        }
 
-       /* Check if the SUBSCRIBED flags disagree. */
-       if ((flags ^ si->info.flags) & CAMEL_STORE_INFO_FOLDER_SUBSCRIBED) {
-               si->info.flags &= ~CAMEL_FOLDER_SUBSCRIBED;
-               si->info.flags |= flags & CAMEL_FOLDER_SUBSCRIBED;
+       /* Check whether the flags disagree. */
+       if (si->info.flags != flags) {
+               si->info.flags = flags;
                camel_store_summary_touch (store->summary);
        }
 


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