[evolution-mapi] BUGFIX #601202 - Evo deletes system addressbook



commit 867a32d4e1096c3340f6c118cb175abf2ee0ae74
Author: Bharath Acharya <abharath novell com>
Date:   Fri Nov 27 12:28:24 2009 +0530

    BUGFIX #601202 - Evo deletes system addressbook
    
    Set the esource property for the standard address book and for GAL to disable
    deletion.

 .../exchange-mapi-account-listener.c               |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/account-setup-eplugin/exchange-mapi-account-listener.c b/src/account-setup-eplugin/exchange-mapi-account-listener.c
index 25c72c4..5a2ebcf 100644
--- a/src/account-setup-eplugin/exchange-mapi-account-listener.c
+++ b/src/account-setup-eplugin/exchange-mapi-account-listener.c
@@ -452,6 +452,8 @@ add_addressbook_sources (EAccount *account, GSList *folders)
 		e_source_set_property (source, "offline_sync", 
 					       camel_url_get_param (url, "offline_sync") ? "1" : "0");
 		e_source_set_property (source, "completion", "true");
+		if (folder->is_default) 
+			e_source_set_property (source, "delete", "no");
 		e_source_group_add_source (group, source, -1);
 		g_object_unref (source);
 	}
@@ -477,6 +479,7 @@ add_addressbook_sources (EAccount *account, GSList *folders)
 		// camel_url_get_param (url, "offline_sync") ? "1" : "0");
 		e_source_set_property(source, "offline_sync", "1");
 		e_source_set_property (source, "completion", "true");
+		e_source_set_property (source, "delete", "no");
 		e_source_group_add_source (group, source, -1);
 		g_object_unref (source);
 	}



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