aboutsummaryrefslogtreecommitdiffstats
path: root/modules/calendar
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-08-15 22:30:39 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-08-15 23:56:26 +0800
commit9cc59ac6c37351a8d956d3ac081b473f92100196 (patch)
tree20eda668dda80d85b4ca8075b6b4d94df8d63733 /modules/calendar
parent704d330db6d136c0f13cce452bd7ed6f6edcab28 (diff)
downloadgsoc2013-evolution-9cc59ac6c37351a8d956d3ac081b473f92100196.tar
gsoc2013-evolution-9cc59ac6c37351a8d956d3ac081b473f92100196.tar.gz
gsoc2013-evolution-9cc59ac6c37351a8d956d3ac081b473f92100196.tar.bz2
gsoc2013-evolution-9cc59ac6c37351a8d956d3ac081b473f92100196.tar.lz
gsoc2013-evolution-9cc59ac6c37351a8d956d3ac081b473f92100196.tar.xz
gsoc2013-evolution-9cc59ac6c37351a8d956d3ac081b473f92100196.tar.zst
gsoc2013-evolution-9cc59ac6c37351a8d956d3ac081b473f92100196.zip
Drop some ancient GroupWise account migration.
Not worth the pain of maintaining old cruft to make progress. Breaks GW account migration from versions prior to 2.8 (circa 2006), but you'd be better off starting from a clean slate anyway if you're jumping that many releases.
Diffstat (limited to 'modules/calendar')
-rw-r--r--modules/calendar/e-memo-shell-migrate.c91
1 files changed, 0 insertions, 91 deletions
diff --git a/modules/calendar/e-memo-shell-migrate.c b/modules/calendar/e-memo-shell-migrate.c
index f81af22f10..55f57996cb 100644
--- a/modules/calendar/e-memo-shell-migrate.c
+++ b/modules/calendar/e-memo-shell-migrate.c
@@ -156,73 +156,6 @@ create_memo_sources (EShellBackend *shell_backend,
}
}
-static gboolean
-is_groupwise_account (EAccount *account)
-{
- if (account->source->url != NULL) {
- return g_str_has_prefix (account->source->url, GROUPWISE_BASE_URI);
- } else {
- return FALSE;
- }
-}
-
-static void
-add_gw_esource (ESourceList *source_list, const gchar *group_name, const gchar *source_name, CamelURL *url, GConfClient *client)
-{
- ESourceGroup *group;
- ESource *source;
- GSList *ids, *temp;
- GError *error = NULL;
- gchar *relative_uri;
- const gchar *soap_port;
- const gchar * use_ssl;
- const gchar *poa_address;
- const gchar *offline_sync;
-
- poa_address = url->host;
- if (!poa_address || strlen (poa_address) ==0)
- return;
- soap_port = camel_url_get_param (url, "soap_port");
-
- if (soap_port == NULL || *soap_port == '\0')
- soap_port = "7191";
-
- use_ssl = camel_url_get_param (url, "use_ssl");
- offline_sync = camel_url_get_param (url, "offline_sync");
-
- group = e_source_group_new (group_name, GROUPWISE_BASE_URI);
- if (!e_source_list_add_group (source_list, group, -1))
- return;
- relative_uri = g_strdup_printf ("%s@%s/", url->user, poa_address);
-
- source = e_source_new (source_name, relative_uri);
- e_source_set_property (source, "auth", "1");
- e_source_set_property (source, "username", url->user);
- e_source_set_property (source, "port", 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 ? "1" : "0" );
-
- e_source_set_color_spec (source, "#EEBC60");
- e_source_group_add_source (group, source, -1);
-
- ids = gconf_client_get_list (client, CALENDAR_CONFIG_MEMOS_SELECTED_MEMOS, GCONF_VALUE_STRING, &error);
- if (error != NULL) {
- g_warning("%s (%s) %s\n", G_STRLOC, G_STRFUNC, error->message);
- g_error_free (error);
- }
- ids = g_slist_append (ids, g_strdup (e_source_peek_uid (source)));
- gconf_client_set_list (client, CALENDAR_CONFIG_MEMOS_SELECTED_MEMOS, GCONF_VALUE_STRING, ids, NULL);
- temp = ids;
- for (; temp != NULL; temp = g_slist_next (temp))
- g_free (temp->data);
-
- g_slist_free (ids);
- g_object_unref (source);
- g_object_unref (group);
- g_free (relative_uri);
-}
-
gboolean
e_memo_shell_backend_migrate (EShellBackend *shell_backend,
gint major,
@@ -245,30 +178,6 @@ e_memo_shell_backend_migrate (EShellBackend *shell_backend,
shell_backend, source_list, &on_this_computer,
&on_the_web, &personal_source);
- /* Migration for Gw accounts between versions < 2.8 */
- if (major == 2 && minor < 8) {
- EAccountList *al;
- EAccount *a;
- CamelURL *url;
- EIterator *it;
- GConfClient *gconf_client = gconf_client_get_default ();
-
- al = e_get_account_list ();
-
- for (it = e_list_get_iterator ((EList *) al);
- e_iterator_is_valid (it);
- e_iterator_next (it)) {
- a = (EAccount *) e_iterator_get (it);
- if (!a->enabled || !is_groupwise_account (a))
- continue;
- url = camel_url_new (a->source->url, NULL);
- add_gw_esource (source_list, a->name, _("Notes"), url, gconf_client);
- camel_url_free (url);
- }
-
- g_object_unref (gconf_client);
- }
-
e_source_list_sync (source_list, NULL);
retval = TRUE;