aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-03-13 06:24:06 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-03-13 06:24:06 +0800
commit9c0138046bf903a3095b8b17f5b7faffdca2d808 (patch)
tree4e4b9019b7d3c1cebe6cc79ed8519004469d7ca0 /mail/mail-config.c
parent48a7e88376b52ac0a3a251ed78753af909ae8edc (diff)
downloadgsoc2013-evolution-9c0138046bf903a3095b8b17f5b7faffdca2d808.tar.gz
gsoc2013-evolution-9c0138046bf903a3095b8b17f5b7faffdca2d808.tar.zst
gsoc2013-evolution-9c0138046bf903a3095b8b17f5b7faffdca2d808.zip
Make the transport save whether or not it's supposed to use SSL as well.
2001-03-12 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c (mail_config_write): Make the transport save whether or not it's supposed to use SSL as well. (config_read): Read in whether or not we should remember the transport password (for those that support SASL). (mail_config_write): Save whether or not to save transport passwords (needed for SASL enabled transports). svn path=/trunk/; revision=8649
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r--mail/mail-config.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c
index 7817386cb7..0d182cee02 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -293,6 +293,10 @@ config_read (void)
transport->url = gnome_config_get_string (path);
g_free (path);
+ path = g_strdup_printf ("transport_save_passwd_%d", i);
+ transport->save_passwd = gnome_config_get_bool (path);
+ g_free (path);
+
if (!*transport->url) {
/* no transport associated with this account */
g_free (transport->url);
@@ -456,6 +460,14 @@ mail_config_write (void)
path = g_strdup_printf ("transport_url_%d", i);
gnome_config_set_string (path, account->transport->url ? account->transport->url : "");
g_free (path);
+
+ path = g_strdup_printf ("transport_save_passwd_%d", i);
+ gnome_config_set_bool (path, account->transport->save_passwd);
+ g_free (path);
+
+ path = g_strdup_printf ("transport_use_ssl_%d", i);
+ gnome_config_set_bool (path, account->transport->use_ssl);
+ g_free (path);
}
gnome_config_pop_prefix ();