From c28b9a75bbfaa2538d34f6b2c0c460b930eff5d7 Mon Sep 17 00:00:00 2001 From: Sushma Rai Date: Thu, 24 Nov 2005 09:45:55 +0000 Subject: Groupwise address book, new warning message if the user's frequent contacts folder is not createdi. svn path=/trunk/; revision=30653 --- addressbook/ChangeLog | 5 +++++ addressbook/addressbook.error.xml | 5 +++++ plugins/groupwise-account-setup/ChangeLog | 7 +++++++ plugins/groupwise-account-setup/camel-gw-listener.c | 9 ++++++++- 4 files changed, 25 insertions(+), 1 deletion(-) diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 64211188f3..7cb58c922d 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,8 @@ +2005-11-24 Sushma Rai + + * addressbook.error.xml: Added new error id "gw-book-list-init" and + corresponding warning message. + 2005-10-04 Srinivasa Ragavan * gui/component/addressbook-view.c (abv_source_popups): diff --git a/addressbook/addressbook.error.xml b/addressbook/addressbook.error.xml index 37de17ce0b..bf2c8f4c84 100644 --- a/addressbook/addressbook.error.xml +++ b/addressbook/addressbook.error.xml @@ -103,4 +103,9 @@ <_secondary>You are connecting to an unsupported GroupWise server and may encounter problems using Evolution. For best results the server should be upgraded to a supported version + + <_primary>GroupWise Address book creation: + <_secondary>Currently you can access only GroupWise System Address Book from Evolution. Please use some other GroupWise mail client once, to get your GroupWise Frequent Contacts and Groupwise Personal Contacts folders. + + diff --git a/plugins/groupwise-account-setup/ChangeLog b/plugins/groupwise-account-setup/ChangeLog index fc7088feeb..11c5a318cd 100644 --- a/plugins/groupwise-account-setup/ChangeLog +++ b/plugins/groupwise-account-setup/ChangeLog @@ -1,3 +1,10 @@ +2005-11-24 Sushma Rai + + * camel-gw-listener.c (add_addressbook_sources): Checking if the + frequent contacts folder is read from the server, and if not + displaying the warning message to user, asking to use some other + GroupWise mail clinet to get it created. + 2005-11-09 Parthasarathi Susarla * camel-gw-listener.c (get_addressbook_names_from_server): diff --git a/plugins/groupwise-account-setup/camel-gw-listener.c b/plugins/groupwise-account-setup/camel-gw-listener.c index df721da739..92b43ae20f 100644 --- a/plugins/groupwise-account-setup/camel-gw-listener.c +++ b/plugins/groupwise-account-setup/camel-gw-listener.c @@ -606,6 +606,7 @@ add_addressbook_sources (EAccount *account) GConfClient* client; const char* use_ssl; const char *poa_address; + gboolean is_frequent_contacts = FALSE; url = camel_url_new (account->source->url, NULL); if (url == NULL) { @@ -630,6 +631,8 @@ add_addressbook_sources (EAccount *account) return FALSE; for (; temp_list != NULL; temp_list = g_list_next (temp_list)) { const char *book_name = e_gw_container_get_name (E_GW_CONTAINER(temp_list->data)); + if (!is_frequent_contacts) + is_frequent_contacts = e_gw_container_get_is_frequent_contacts (E_GW_CONTAINER (temp_list->data)); source = e_source_new (book_name, g_strconcat (";",book_name, NULL)); e_source_set_property (source, "auth", "plain/password"); e_source_set_property (source, "auth-domain", "Groupwise"); @@ -659,7 +662,11 @@ add_addressbook_sources (EAccount *account) g_object_unref (list); g_object_unref (client); g_free (base_uri); - + + if (!is_frequent_contacts) { + /* display warning message */ + e_error_run (NULL, "addressbook:gw-book-list-init", NULL); + } return TRUE; } -- cgit v1.2.3