aboutsummaryrefslogtreecommitdiffstats
path: root/mail
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
parent48a7e88376b52ac0a3a251ed78753af909ae8edc (diff)
downloadgsoc2013-evolution-9c0138046bf903a3095b8b17f5b7faffdca2d808.tar
gsoc2013-evolution-9c0138046bf903a3095b8b17f5b7faffdca2d808.tar.gz
gsoc2013-evolution-9c0138046bf903a3095b8b17f5b7faffdca2d808.tar.bz2
gsoc2013-evolution-9c0138046bf903a3095b8b17f5b7faffdca2d808.tar.lz
gsoc2013-evolution-9c0138046bf903a3095b8b17f5b7faffdca2d808.tar.xz
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')
-rw-r--r--mail/ChangeLog7
-rw-r--r--mail/mail-config.c12
2 files changed, 19 insertions, 0 deletions
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 <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).
+
* 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 ();