[evolution-exchange/gnome-3-0] Add the ESource if we get folder-already-exists error. Since it might just exist in e-calendar-facto



commit 5891229481a44ba5f62e627d1634dec34d340c18
Author: Chenthill Palanisamy <pchenthill novell com>
Date:   Tue Apr 12 12:40:59 2011 +0530

    Add the ESource if we get folder-already-exists error. Since
    it might just exist in e-calendar-factory process and evolution
    would just depend on esource.

 server/storage/exchange-hierarchy-foreign.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/server/storage/exchange-hierarchy-foreign.c b/server/storage/exchange-hierarchy-foreign.c
index 3eff09c..3b1d836 100644
--- a/server/storage/exchange-hierarchy-foreign.c
+++ b/server/storage/exchange-hierarchy-foreign.c
@@ -430,7 +430,10 @@ exchange_hierarchy_foreign_add_folder (ExchangeHierarchy *hier,
 	guint folder_mask = 0;
 
 	result =  create_internal (hier, hier->toplevel, folder_name, NULL, folder);
-	if (result == EXCHANGE_ACCOUNT_FOLDER_OK) {
+
+	/* Add the esource even if the folder already exists since evolution client process would
+	   not know it and it might just exist in exchange process */
+	if (result == EXCHANGE_ACCOUNT_FOLDER_OK || result == EXCHANGE_ACCOUNT_FOLDER_ALREADY_EXISTS) {
 		/* Add the esources */
 		folder_type = e_folder_get_type_string (*folder);
 		physical_uri = e_folder_get_physical_uri (*folder);



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