[evolution-data-server] [IMAPx] Keep store summary's flags in sync with mailbox flags
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] [IMAPx] Keep store summary's flags in sync with mailbox flags
- Date: Wed, 23 Apr 2014 13:04:40 +0000 (UTC)
commit f3fad0ecffc94041d3eda18ff5f3d34f44f228ee
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 503c624..97bcf09 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]