aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-account-editor.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-08-17 17:16:06 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-09-14 20:08:51 +0800
commit8a11186f25b36813d797a482bed8acd48bfcf7d4 (patch)
tree0c4f2999bf533430b0abf03387c8b34bdc1d89a7 /mail/em-account-editor.c
parentfdd6d71ab45cb312053bd84213ada4f58c67f54c (diff)
downloadgsoc2013-evolution-8a11186f25b36813d797a482bed8acd48bfcf7d4.tar.gz
gsoc2013-evolution-8a11186f25b36813d797a482bed8acd48bfcf7d4.tar.zst
gsoc2013-evolution-8a11186f25b36813d797a482bed8acd48bfcf7d4.zip
Bug #656622 - 'Check for supported types' fails again
Diffstat (limited to 'mail/em-account-editor.c')
-rw-r--r--mail/em-account-editor.c11
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);