aboutsummaryrefslogtreecommitdiffstats
path: root/mail/session.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2001-01-10 01:21:34 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-01-10 01:21:34 +0800
commit2b1d1fdc36a85c3cd3b18cd1d24ef36e35d36504 (patch)
tree07f48e2c5b52316bc94f85104f53d28a3ea7c5ba /mail/session.c
parent5e1b1bf7cbe2070ba0187b3b6a4941394e585e4c (diff)
downloadgsoc2013-evolution-2b1d1fdc36a85c3cd3b18cd1d24ef36e35d36504.tar.gz
gsoc2013-evolution-2b1d1fdc36a85c3cd3b18cd1d24ef36e35d36504.tar.zst
gsoc2013-evolution-2b1d1fdc36a85c3cd3b18cd1d24ef36e35d36504.zip
New function to set the password for a given url.
2001-01-09 Jeffrey Stedfast <fejj@helixcode.com> * session.c (mail_session_set_password): New function to set the password for a given url. * mail-config-druid.c (druid_finish): Don't save the password in the source url, instead insert it into the save-password hash. (mail_config_druid_get_source_url): Check to make sure the authmech isn't "", if it is then don't set the authmech. * mail-account-editor.c (apply_changes): Don't save the password in the source url, instead insert it into the save-password hash. Also check to make sure we don't set an empty string as the authmech for the source or transport. * mail-accounts.c (mail_default): After reloading the accounts, reselect the previously selected account. (mail_delete): Same. * mail-config-druid.c (druid_cancel): Fixed segfault bug. svn path=/trunk/; revision=7319
Diffstat (limited to 'mail/session.c')
-rw-r--r--mail/session.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mail/session.c b/mail/session.c
index 6fd85712e4..b35116d904 100644
--- a/mail/session.c
+++ b/mail/session.c
@@ -289,3 +289,9 @@ mail_session_forget_passwords (BonoboUIComponent *uih, void *user_data,
gnome_config_private_clean_section ("/Evolution/Passwords");
gnome_config_sync ();
}
+
+void
+mail_session_set_password (const char *url, const char *password)
+{
+ g_hash_table_insert (passwords, url, g_strdup (password));
+}