aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/groupwise-account-setup
diff options
context:
space:
mode:
authorSivaih Nallagatla <snallagatla@novell.com>2004-01-28 20:35:59 +0800
committerSivaiah Nallagatla <siva@src.gnome.org>2004-01-28 20:35:59 +0800
commitf58bb183fdf47981d8a85aaf1ad1b92575236cb1 (patch)
treeadf5a648a583a8a26caaeebfec0df7c57b404810 /plugins/groupwise-account-setup
parent9d2557bb9181e67f0f89ed9414aa27578276db47 (diff)
downloadgsoc2013-evolution-f58bb183fdf47981d8a85aaf1ad1b92575236cb1.tar.gz
gsoc2013-evolution-f58bb183fdf47981d8a85aaf1ad1b92575236cb1.tar.zst
gsoc2013-evolution-f58bb183fdf47981d8a85aaf1ad1b92575236cb1.zip
add port and /soap parts to relative uri while updating it when account
2004-01-28 Sivaih Nallagatla <snallagatla@novell.com> * providers/groupwise/camel-gw-listener.c (account_changed) (modify_esources) : add port and /soap parts to relative uri while updating it when account changed svn path=/trunk/; revision=24489
Diffstat (limited to 'plugins/groupwise-account-setup')
-rw-r--r--plugins/groupwise-account-setup/camel-gw-listener.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/groupwise-account-setup/camel-gw-listener.c b/plugins/groupwise-account-setup/camel-gw-listener.c
index 0738b35efa..da11be41fb 100644
--- a/plugins/groupwise-account-setup/camel-gw-listener.c
+++ b/plugins/groupwise-account-setup/camel-gw-listener.c
@@ -232,7 +232,7 @@ remove_esource (const char *conf_key, const char *group_name, char* source_name,
/* looks up for e-source with having same info as old_account_info and changes its values passed in new values */
static void
-modify_esource (const char* conf_key, GwAccountInfo *old_account_info, const char* new_group_name, const char* new_relative_uri)
+modify_esource (const char* conf_key, GwAccountInfo *old_account_info, const char* new_group_name, const char *username, const char* new_relative_uri)
{
ESourceList *list;
ESourceGroup *group;
@@ -270,6 +270,7 @@ modify_esource (const char* conf_key, GwAccountInfo *old_account_info, const cha
e_source_group_set_name (group, new_group_name);
e_source_set_relative_uri (source, new_relative_uri);
+ e_source_set_property (source, "username", username);
e_source_list_sync (list, NULL);
found_group = TRUE;
break;
@@ -517,9 +518,9 @@ account_changed (EAccountList *account_listener, EAccount *account)
if (strcmp (existing_account_info->name, account->name) != 0 || strcmp (existing_account_info->source_url, account->source->url) != 0) {
url = camel_url_new (account->source->url, NULL);
- relative_uri = g_strdup_printf ("%s@%s", url->user, url->host);
- modify_esource ("/apps/evolution/calendar/sources", existing_account_info, account->name, relative_uri);
- modify_esource ("/apps/evolution/tasks/sources", existing_account_info, account->name, relative_uri);
+ relative_uri = g_strdup_printf ("%s:7181/soap", url->host);
+ modify_esource ("/apps/evolution/calendar/sources", existing_account_info, account->name, url->user, relative_uri);
+ modify_esource ("/apps/evolution/tasks/sources", existing_account_info, account->name, url->user, relative_uri);
g_free (existing_account_info->name);
g_free (existing_account_info->source_url);
existing_account_info->name = g_strdup (account->name);