diff options
author | Srinivasa Ragavan <sragavan@novell.com> | 2007-11-19 14:48:52 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@src.gnome.org> | 2007-11-19 14:48:52 +0800 |
commit | 2ec2eb3a28d066a530e17a0e6f4e6a9fb1d8a5d7 (patch) | |
tree | 6fd095900b94a56ebbf4470e267f21c730cdecd1 | |
parent | ab46a75995f041c15d5f7affd26d61bec5f87ca4 (diff) | |
download | gsoc2013-evolution-2ec2eb3a28d066a530e17a0e6f4e6a9fb1d8a5d7.tar gsoc2013-evolution-2ec2eb3a28d066a530e17a0e6f4e6a9fb1d8a5d7.tar.gz gsoc2013-evolution-2ec2eb3a28d066a530e17a0e6f4e6a9fb1d8a5d7.tar.bz2 gsoc2013-evolution-2ec2eb3a28d066a530e17a0e6f4e6a9fb1d8a5d7.tar.lz gsoc2013-evolution-2ec2eb3a28d066a530e17a0e6f4e6a9fb1d8a5d7.tar.xz gsoc2013-evolution-2ec2eb3a28d066a530e17a0e6f4e6a9fb1d8a5d7.tar.zst gsoc2013-evolution-2ec2eb3a28d066a530e17a0e6f4e6a9fb1d8a5d7.zip |
Set the GAL and GAL limit part of the e-source.
2007-11-19 Srinivasa Ragavan <sragavan@novell.com>
* exchange-account-listener.c: (add_addressbook_sources): Set the GAL
and GAL limit part of the e-source.
svn path=/branches/EXCHANGE_MAPI_BRANCH/; revision=34551
-rw-r--r-- | plugins/exchange-mapi/ChangeLog | 5 | ||||
-rw-r--r-- | plugins/exchange-mapi/exchange-account-listener.c | 25 |
2 files changed, 28 insertions, 2 deletions
diff --git a/plugins/exchange-mapi/ChangeLog b/plugins/exchange-mapi/ChangeLog index 3ebac5949e..c3e50e07ac 100644 --- a/plugins/exchange-mapi/ChangeLog +++ b/plugins/exchange-mapi/ChangeLog @@ -1,3 +1,8 @@ +2007-11-19 Srinivasa Ragavan <sragavan@novell.com> + + * exchange-account-listener.c: (add_addressbook_sources): Set the GAL + and GAL limit part of the e-source. + 2007-11-15 Suman Manjunath <msuman@novell.com> * exchange-account-listener.c: (add_cal_esource), diff --git a/plugins/exchange-mapi/exchange-account-listener.c b/plugins/exchange-mapi/exchange-account-listener.c index 5287116fa4..fc85d451ad 100644 --- a/plugins/exchange-mapi/exchange-account-listener.c +++ b/plugins/exchange-mapi/exchange-account-listener.c @@ -454,6 +454,7 @@ add_addressbook_sources (EAccount *account, GSList *folders) const char* use_ssl; gboolean is_frequent_contacts = FALSE, is_writable = FALSE; + printf("URL %s\n", account->source->url); url = camel_url_new (account->source->url, NULL); if (url == NULL) { return FALSE; @@ -480,14 +481,34 @@ add_addressbook_sources (EAccount *account, GSList *folders) tmp = g_strdup_printf ("%016llx", folder->folder_id); e_source_set_property(source, "folder-id", tmp); g_free (tmp); + e_source_set_property (source, "offline_sync", + camel_url_get_param (url, "offline_sync") ? "1" : "0"); +// e_source_set_property(source, "offline_sync", "1"); + e_source_set_property (source, "completion", "true"); + e_source_group_add_source (group, source, -1); + g_object_unref (source); + } + + //Add GAL + { + char *uri; + uri = g_strdup_printf("galldap://%s@%s;Global Address List", url->user, url->host); + source = e_source_new_with_absolute_uri ("Global Address List", uri); +// source = e_source_new ("Global Address List", g_strconcat (";","Global Address List" , NULL)); + e_source_set_property (source, "auth", "plain/password"); + e_source_set_property (source, "auth-domain", "GALLDAP"); + e_source_set_property(source, "user", url->user); + e_source_set_property(source, "host", camel_url_get_param (url, "ad_server")); + e_source_set_property(source, "view-limit", camel_url_get_param (url, "ad_limit")); + e_source_set_property(source, "profile", camel_url_get_param (url, "profile")); + e_source_set_property(source, "domain", camel_url_get_param (url, "domain")); // e_source_set_property (source, "offline_sync", // camel_url_get_param (url, "offline_sync") ? "1" : "0"); e_source_set_property(source, "offline_sync", "1"); e_source_set_property (source, "completion", "true"); e_source_group_add_source (group, source, -1); - g_object_unref (source); + g_object_unref (source); } - e_source_list_add_group (list, group, -1); e_source_list_sync (list, NULL); g_object_unref (group); |