From 7a33c0e1504c8d6bc8569fc65ab1479a04daf0df Mon Sep 17 00:00:00 2001 From: Sivaiah Nallagatla Date: Sun, 23 Jan 2005 09:16:31 +0000 Subject: Don't set offline_sync value taken from camel url instead set "1" or "0" 2005-01-23 Sivaiah Nallagatla * camel-gw-listener.c (add_esource) (modify_esource) (add_addressbook_sources) : Don't set offline_sync value taken from camel url instead set "1" or "0" depending upon offline is enabled or not svn path=/trunk/; revision=28512 --- plugins/groupwise-account-setup/camel-gw-listener.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins') diff --git a/plugins/groupwise-account-setup/camel-gw-listener.c b/plugins/groupwise-account-setup/camel-gw-listener.c index d830dcb0a7..fb1e426a04 100644 --- a/plugins/groupwise-account-setup/camel-gw-listener.c +++ b/plugins/groupwise-account-setup/camel-gw-listener.c @@ -204,7 +204,7 @@ add_esource (const char *conf_key, const char *group_name, const char *source_n e_source_set_property (source, "port", camel_url_get_param (url, "soap_port")); e_source_set_property (source, "auth-domain", "Groupwise"); e_source_set_property (source, "use_ssl", use_ssl); - e_source_set_property (source, "offline_sync", offline_sync); + e_source_set_property (source, "offline_sync", offline_sync ? "1" : "0" ); e_source_group_add_source (group, source, -1); e_source_list_sync (source_list, NULL); @@ -353,7 +353,7 @@ modify_esource (const char* conf_key, GwAccountInfo *old_account_info, const cha e_source_set_property (source, "username", new_url->user); e_source_set_property (source, "port", camel_url_get_param (new_url,"soap_port")); e_source_set_property (source, "use_ssl", camel_url_get_param (url, "use_ssl")); - e_source_set_property (source, "offline_sync", camel_url_get_param (url, "offline_sync")); + e_source_set_property (source, "offline_sync", camel_url_get_param (url, "offline_sync") ? "1" : "0"); e_source_list_sync (list, NULL); found_group = TRUE; g_free (new_relative_uri); @@ -533,7 +533,7 @@ 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); - e_source_set_property (source, "offline_sync", camel_url_get_param (url, "offline_sync")); + e_source_set_property (source, "offline_sync", camel_url_get_param (url, "offline_sync") ? "1" : "0"); if (!e_gw_container_get_is_writable (E_GW_CONTAINER(temp_list->data))) e_source_set_property (source, "completion", "true"); if (e_gw_container_get_is_frequent_contacts (E_GW_CONTAINER(temp_list->data))) -- cgit