aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-09-13 03:37:20 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-09-13 03:37:20 +0800
commit76538defb605696323ad0d6dc1f85fc277d4528c (patch)
treeb885a3c80bcb89eb1647187b941bfe664ecaa178 /mail
parentc33b6dc7e71b994b3297babee61bd989b6a1aef2 (diff)
downloadgsoc2013-evolution-76538defb605696323ad0d6dc1f85fc277d4528c.tar
gsoc2013-evolution-76538defb605696323ad0d6dc1f85fc277d4528c.tar.gz
gsoc2013-evolution-76538defb605696323ad0d6dc1f85fc277d4528c.tar.bz2
gsoc2013-evolution-76538defb605696323ad0d6dc1f85fc277d4528c.tar.lz
gsoc2013-evolution-76538defb605696323ad0d6dc1f85fc277d4528c.tar.xz
gsoc2013-evolution-76538defb605696323ad0d6dc1f85fc277d4528c.tar.zst
gsoc2013-evolution-76538defb605696323ad0d6dc1f85fc277d4528c.zip
Save transport passwords too. This fixes bug #3020.
2001-09-12 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c (mail_config_write_on_exit): Save transport passwords too. This fixes bug #3020. svn path=/trunk/; revision=12777
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 */