From 9c0138046bf903a3095b8b17f5b7faffdca2d808 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 12 Mar 2001 22:24:06 +0000 Subject: Make the transport save whether or not it's supposed to use SSL as well. 2001-03-12 Jeffrey Stedfast * 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 --- mail/ChangeLog | 7 +++++++ mail/mail-config.c | 12 ++++++++++++ 2 files changed, 19 insertions(+) diff --git a/mail/ChangeLog b/mail/ChangeLog index 95b1c335b6..130b5df97e 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,5 +1,12 @@ 2001-03-12 Jeffrey Stedfast + * 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). + * mail-ops.c (add_vtrash_info): Instead of always creating a new vTrash folder, if the store already has a Trash folder, replace it with the vTrash. Also, name the folder "Trash" instead of "vTrash" 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 (); -- cgit v1.2.3