diff options
author | Milan Crha <mcrha@redhat.com> | 2011-08-17 17:16:06 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2011-08-17 17:16:06 +0800 |
commit | a9749195b034f5cefec575d2da7cc465b2d2ac76 (patch) | |
tree | e5ed3563be0f19ffdf29ea8b2fc23e718709d02f /mail/em-account-editor.c | |
parent | cdf7dc43ec5a42ec9962223e54ec80ce678a807e (diff) | |
download | gsoc2013-evolution-a9749195b034f5cefec575d2da7cc465b2d2ac76.tar gsoc2013-evolution-a9749195b034f5cefec575d2da7cc465b2d2ac76.tar.gz gsoc2013-evolution-a9749195b034f5cefec575d2da7cc465b2d2ac76.tar.bz2 gsoc2013-evolution-a9749195b034f5cefec575d2da7cc465b2d2ac76.tar.lz gsoc2013-evolution-a9749195b034f5cefec575d2da7cc465b2d2ac76.tar.xz gsoc2013-evolution-a9749195b034f5cefec575d2da7cc465b2d2ac76.tar.zst gsoc2013-evolution-a9749195b034f5cefec575d2da7cc465b2d2ac76.zip |
Bug #656622 - 'Check for supported types' fails again
Diffstat (limited to 'mail/em-account-editor.c')
-rw-r--r-- | mail/em-account-editor.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c index 52f930d739..ccb42be8e9 100644 --- a/mail/em-account-editor.c +++ b/mail/em-account-editor.c @@ -2036,7 +2036,8 @@ emae_check_authtype (GtkWidget *w, GtkWidget *editor; gpointer parent; gchar *uid; - const gchar *url_string; + gchar *url_string; + CamelURL *url; GError *error = NULL; account = em_account_editor_get_modified_account (service->emae); @@ -2046,8 +2047,11 @@ emae_check_authtype (GtkWidget *w, session = e_mail_backend_get_session (backend); uid = g_strdup_printf ("emae-check-authtype-%p", service); - url_string = e_account_get_string ( - account, emae_service_info[service->type].account_uri_key); + url = camel_url_new (e_account_get_string (account, emae_service_info[service->type].account_uri_key), NULL); + if (service->settings) + camel_settings_save_to_url (service->settings, url); + url_string = camel_url_to_string (url, 0); + camel_url_free (url); /* to test on actual data, not on previously used */ camel_service = camel_session_add_service ( @@ -2055,6 +2059,7 @@ emae_check_authtype (GtkWidget *w, url_string, service->type, &error); g_free (uid); + g_free (url_string); if (editor != NULL) parent = gtk_widget_get_toplevel (editor); |