From a19d9df3e60438d5751e02f8c7aa54c5fe1a64c5 Mon Sep 17 00:00:00 2001 From: Sushma Rai Date: Wed, 28 Sep 2005 08:38:58 +0000 Subject: Using writable property to find the GroupWise system address book, while marking it for offline usage, instead of it's name. svn path=/trunk/; revision=30385 --- plugins/groupwise-account-setup/camel-gw-listener.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'plugins/groupwise-account-setup/camel-gw-listener.c') diff --git a/plugins/groupwise-account-setup/camel-gw-listener.c b/plugins/groupwise-account-setup/camel-gw-listener.c index 8aa5daf1e4..58122ff7b4 100644 --- a/plugins/groupwise-account-setup/camel-gw-listener.c +++ b/plugins/groupwise-account-setup/camel-gw-listener.c @@ -633,7 +633,12 @@ add_addressbook_sources (EAccount *account) e_source_set_property (source, "auth-domain", "Groupwise"); e_source_set_property (source, "port", soap_port); e_source_set_property(source, "user", url->user); - if (!strcmp (book_name, "Novell GroupWise Address Book")) + /* mark system address book for offline usage */ + /* FIXME: add isPersonal flag to container and use that isFrequentContact + * properties, instead of using writable to distinguish between the + * system address book and other address books. + */ + if (!e_gw_container_get_is_writable (E_GW_CONTAINER(temp_list->data))) e_source_set_property (source, "offline_sync", "1"); else e_source_set_property (source, "offline_sync", -- cgit v1.2.3