[evolution-mapi] Bug #611560 - 'Mark as junk' should be disabled in junk folder



commit b0b9ed8f15fbb56a659fae1982808fa5d5e60416
Author: Milan Crha <mcrha redhat com>
Date:   Mon May 3 21:37:59 2010 +0200

    Bug #611560 - 'Mark as junk' should be disabled in junk folder

 src/camel/camel-mapi-folder.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/camel/camel-mapi-folder.c b/src/camel/camel-mapi-folder.c
index 0a54083..3e75ccb 100644
--- a/src/camel/camel-mapi-folder.c
+++ b/src/camel/camel-mapi-folder.c
@@ -2358,6 +2358,12 @@ camel_mapi_folder_new (CamelStore *store, const gchar *folder_name, const gchar
 
 		if (!strcmp(folder_name, camel_mapi_store_info_full_name (mapi_store->summary, si))) {
 			mapi_folder->type = si->flags;
+			if ((si->flags & CAMEL_FOLDER_TYPE_MASK) == CAMEL_FOLDER_TYPE_TRASH)
+				folder->folder_flags |= CAMEL_FOLDER_IS_TRASH;
+			else if ((si->flags & CAMEL_FOLDER_TYPE_MASK) == CAMEL_FOLDER_TYPE_JUNK)
+				folder->folder_flags  |= CAMEL_FOLDER_IS_JUNK;
+			camel_store_summary_info_free((CamelStoreSummary *)mapi_store->summary, si);
+			break;
 		}
 
 		camel_store_summary_info_free((CamelStoreSummary *)mapi_store->summary, si);



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