[evolution-data-server] camel_settings_save_to_url(): Forgot to handle "auth-mechanism".



commit 2b0e6c79fe23bda9d5649785f1d9a3c0af2e4bcb
Author: Matthew Barnes <mbarnes redhat com>
Date:   Fri Nov 4 13:15:12 2011 -0400

    camel_settings_save_to_url(): Forgot to handle "auth-mechanism".

 camel/camel-settings.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/camel/camel-settings.c b/camel/camel-settings.c
index 51d7dc4..ff0706b 100644
--- a/camel/camel-settings.c
+++ b/camel/camel-settings.c
@@ -444,6 +444,13 @@ camel_settings_save_to_url (CamelSettings *settings,
 		/* Some CamelNetworkSettings properties are put directly
 		 * in the CamelURL struct instead of in parameters. */
 
+		if (g_strcmp0 (pspec->name, "auth-mechanism") == 0) {
+			const gchar *auth = g_value_get_string (&pvalue);
+			camel_url_set_authmech (url, auth);
+			g_value_unset (&pvalue);
+			continue;
+		}
+
 		if (g_strcmp0 (pspec->name, "host") == 0) {
 			const gchar *host = g_value_get_string (&pvalue);
 			camel_url_set_host (url, host);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]