aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-config.c18
2 files changed, 15 insertions, 8 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index e723733753..2bc4e60407 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2001-09-12 Jeffrey Stedfast <fejj@ximian.com>
+
+ * mail-config.c (mail_config_write_on_exit): Save transport
+ passwords too. This fixes bug #3020.
+
2001-09-11 Dan Winship <danw@ximian.com>
* mail-folder-cache.c (mail_folder_cache_note_folderinfo): Don't
diff --git a/mail/mail-config.c b/mail/mail-config.c
index 45b7496458..862e133f09 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -775,8 +775,8 @@ void
mail_config_write_on_exit (void)
{
CORBA_Environment ev;
- GSList *sources;
- MailConfigService *s;
+ MailConfigAccount *account;
+ const GSList *accounts;
/* Show Messages Threaded */
bonobo_config_set_boolean (config->db, "/Mail/Display/thread_list",
@@ -881,13 +881,15 @@ mail_config_write_on_exit (void)
/* Passwords */
/* fixme: still depends on gnome-config */
gnome_config_private_clean_section ("/Evolution/Passwords");
- sources = mail_config_get_sources ();
- for ( ; sources; sources = sources->next) {
- s = sources->data;
- if (s->save_passwd && s->url)
- mail_session_remember_password (s->url);
+ accounts = mail_config_get_accounts ();
+ for ( ; accounts; accounts = accounts->next) {
+ account = accounts->data;
+ if (account->source->save_passwd && account->source->url)
+ mail_session_remember_password (account->source->url);
+
+ if (account->transport->save_passwd && account->transport->url)
+ mail_session_remember_password (account->transport->url);
}
- g_slist_free (sources);
gnome_config_sync ();
/* now do cleanup */