aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/groupwise-account-setup
diff options
context:
space:
mode:
authorSivaiah Nallagatla <snalagatla@novell.com>2005-01-23 17:16:31 +0800
committerSivaiah Nallagatla <siva@src.gnome.org>2005-01-23 17:16:31 +0800
commit7a33c0e1504c8d6bc8569fc65ab1479a04daf0df (patch)
treea85f287a54f7c852d501821b1f0cc876b5c8e922 /plugins/groupwise-account-setup
parent16b9513706f2ceb71c1dbcf3c87c2ae4b283c6ad (diff)
downloadgsoc2013-evolution-7a33c0e1504c8d6bc8569fc65ab1479a04daf0df.tar
gsoc2013-evolution-7a33c0e1504c8d6bc8569fc65ab1479a04daf0df.tar.gz
gsoc2013-evolution-7a33c0e1504c8d6bc8569fc65ab1479a04daf0df.tar.bz2
gsoc2013-evolution-7a33c0e1504c8d6bc8569fc65ab1479a04daf0df.tar.lz
gsoc2013-evolution-7a33c0e1504c8d6bc8569fc65ab1479a04daf0df.tar.xz
gsoc2013-evolution-7a33c0e1504c8d6bc8569fc65ab1479a04daf0df.tar.zst
gsoc2013-evolution-7a33c0e1504c8d6bc8569fc65ab1479a04daf0df.zip
Don't set offline_sync value taken from camel url instead set "1" or "0"
2005-01-23 Sivaiah Nallagatla <snalagatla@novell.com> * 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
Diffstat (limited to 'plugins/groupwise-account-setup')
-rw-r--r--plugins/groupwise-account-setup/camel-gw-listener.c6
1 files changed, 3 insertions, 3 deletions
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)))