[evolution-data-server] Bug #728976 - [IMAPx] Ignore \NoSelect for Inbox folder



commit 88773749a38dce5fa52f378c962f33bcf6eb27c7
Author: Milan Crha <mcrha redhat com>
Date:   Wed May 21 13:56:12 2014 +0200

    Bug #728976 - [IMAPx] Ignore \NoSelect for Inbox folder

 camel/providers/imapx/camel-imapx-store.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-store.c b/camel/providers/imapx/camel-imapx-store.c
index 8222502..0df0a62 100644
--- a/camel/providers/imapx/camel-imapx-store.c
+++ b/camel/providers/imapx/camel-imapx-store.c
@@ -371,7 +371,8 @@ imapx_store_mailbox_attributes_to_flags (CamelIMAPXMailbox *mailbox)
        const gchar *attribute;
 
        attribute = CAMEL_IMAPX_LIST_ATTR_NOSELECT;
-       if (camel_imapx_mailbox_has_attribute (mailbox, attribute))
+       if (camel_imapx_mailbox_has_attribute (mailbox, attribute) &&
+           !camel_imapx_mailbox_is_inbox (camel_imapx_mailbox_get_name (mailbox)))
                store_info_flags |= CAMEL_STORE_INFO_FOLDER_NOSELECT;
 
        attribute = CAMEL_IMAPX_LIST_ATTR_NOINFERIORS;


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