[evolution-mapi/gnome-2-32] Bug #629484 - Do not refresh 'Favourites' folder itself



commit 4fb60e7dcd302af108ce158ac4e4fdfdffb4a7bc
Author: Milan Crha <mcrha redhat com>
Date:   Wed Sep 29 12:32:46 2010 +0200

    Bug #629484 - Do not refresh 'Favourites' folder itself

 src/camel/camel-mapi-store.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/camel/camel-mapi-store.c b/src/camel/camel-mapi-store.c
index 587d621..aea511b 100644
--- a/src/camel/camel-mapi-store.c
+++ b/src/camel/camel-mapi-store.c
@@ -1963,6 +1963,10 @@ mapi_get_junk (CamelStore *store, GError **error)
 static gboolean
 mapi_can_refresh_folder (CamelStore *store, CamelFolderInfo *info, GError **error)
 {
+	/* skip unselectable folders from automatic refresh */
+	if (info && (info->flags & CAMEL_FOLDER_NOSELECT) != 0)
+		return FALSE;
+
 	return CAMEL_STORE_CLASS(camel_mapi_store_parent_class)->can_refresh_folder (store, info, error) ||
 	      (camel_url_get_param (((CamelService *)store)->url, "check_all") != NULL);
 }



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