diff options
author | Suman Manjunath <msuman@src.gnome.org> | 2007-12-31 02:43:31 +0800 |
---|---|---|
committer | Suman Manjunath <msuman@src.gnome.org> | 2007-12-31 02:43:31 +0800 |
commit | 4199f9384f184abe0c33d0fc96805348e5664aed (patch) | |
tree | ab2ca7f07d3ae8afb43c44fc673f1d46acdbc28d /plugins/exchange-operations/exchange-contacts.c | |
parent | 6db4c745a3f3c74e70339f3020c30edb54d88d00 (diff) | |
download | gsoc2013-evolution-4199f9384f184abe0c33d0fc96805348e5664aed.tar.gz gsoc2013-evolution-4199f9384f184abe0c33d0fc96805348e5664aed.tar.zst gsoc2013-evolution-4199f9384f184abe0c33d0fc96805348e5664aed.zip |
Patch from Sushma Rai <rsushma@novell.com>: Fix for bug #327965 (Set the e-source property username with the domain, if the domain is specified)
svn path=/trunk/; revision=34739
Diffstat (limited to 'plugins/exchange-operations/exchange-contacts.c')
-rw-r--r-- | plugins/exchange-operations/exchange-contacts.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/plugins/exchange-operations/exchange-contacts.c b/plugins/exchange-operations/exchange-contacts.c index 147bf1fe14..a906bea5d1 100644 --- a/plugins/exchange-operations/exchange-contacts.c +++ b/plugins/exchange-operations/exchange-contacts.c @@ -401,7 +401,7 @@ e_exchange_contacts_commit (EPlugin *epl, EConfigTarget *target) EABConfigTargetSource *t = (EABConfigTargetSource *) target; ESource *source = t->source; gchar *uri_text, *gname, *gruri, *ruri = NULL, *path = NULL, *path_prefix, *oldpath=NULL; - gchar *username, *authtype; + gchar *username, *windows_domain, *authtype; int prefix_len; ExchangeAccount *account; ExchangeAccountFolderResult result; @@ -426,7 +426,13 @@ e_exchange_contacts_commit (EPlugin *epl, EConfigTarget *target) if (!is_exchange_personal_folder (account, uri_text)) return; - username = exchange_account_get_username (account); + windows_domain = exchange_account_get_windows_domain (account); + if (windows_domain) + username = g_strdup_printf ("%s\\%s", windows_domain, + exchange_account_get_username (account)); + else + username = g_strdup (exchange_account_get_username (account)); + authtype = exchange_account_get_authtype (account); path_prefix = g_strconcat (account->account_filename, "/;", NULL); @@ -519,6 +525,9 @@ e_exchange_contacts_commit (EPlugin *epl, EConfigTarget *target) } done: g_free (ruri); + g_free (username); + if (authtype) + g_free (authtype); g_free (path); g_free (oldpath); g_free (contacts_old_src_uri); |