aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog7
-rw-r--r--mail/mail-config.c16
2 files changed, 15 insertions, 8 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 8543220b7f..81f6db6a61 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,10 @@
+2001-07-24 Jason Leach <jleach@ximian.com>
+
+ * mail-config.c (config_read): Match the prefix for the
+ "remember_passphrase" setting with where it's being saved to
+ (/Mail/Prompts), so the setting gets loaded correctly. Fixes
+ #5351.
+
2001-07-24 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (handle_text_plain): check_specials if this is an
diff --git a/mail/mail-config.c b/mail/mail-config.c
index 080b8e46e0..f7280b4883 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -521,7 +521,7 @@ config_read (void)
"/Mail/PGP/type", CAMEL_PGP_TYPE_NONE, NULL);
config->remember_pgp_passphrase = bonobo_config_get_boolean_with_default (
- config->db, "/Mail/PGP/remember_passphrase", TRUE, NULL);
+ config->db, "/Mail/Prompts/remember_passphrase", TRUE, NULL);
/* HTTP images */
config->http_mode = bonobo_config_get_long_with_default (config->db,
@@ -1267,20 +1267,20 @@ const MailConfigAccount *
mail_config_get_default_account (void)
{
MailConfigAccount *retval;
-
+
if (!config->accounts)
return NULL;
-
+
retval = g_slist_nth_data (config->accounts,
config->default_account);
-
+
/* Looks like we have no default, so make the first account
the default */
if (retval == NULL) {
mail_config_set_default_account_num (0);
retval = config->accounts->data;
}
-
+
return retval;
}
@@ -1368,11 +1368,11 @@ void
mail_config_set_default_account (const MailConfigAccount *account)
{
int position;
-
+
position = g_slist_index (config->accounts, (void*)account);
-
+
config->default_account = position;
-
+
return;
}