From 56d33b7e476a1b2a2c4fb7e947c69e1087fa13d2 Mon Sep 17 00:00:00 2001 From: Peter Williams Date: Wed, 25 Jul 2001 19:05:08 +0000 Subject: Now take a CamelService parameter (as passed by Camel). Allows us to have 2001-07-25 Peter Williams * mail-mt.c (mail_get_password): Now take a CamelService parameter (as passed by Camel). Allows us to have a "remember password" checkbox that is set correctly and whose settings can be propagated back to the proper MailConfigService. (do_get_pass): Add a checkbutton allowing the user to change whether the password is remembered or not. (pass_got): Apply the setting of the "remember password" checkbutton (if not cancelled.) * mail-mt.h: Update the prototype here. * mail-config.c (mail_config_service_set_save_passwd): New function, pretty bland. * mail-config.h: Prototype our bland new function. (Get it? It's a pun!) * mail-session.c (get_password): Pass the service as well. svn path=/trunk/; revision=11408 --- mail/mail-config.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'mail/mail-config.c') diff --git a/mail/mail-config.c b/mail/mail-config.c index 9448b3372c..0694878022 100644 --- a/mail/mail-config.c +++ b/mail/mail-config.c @@ -1449,6 +1449,13 @@ mail_config_get_sources (void) return sources; } +void +mail_config_service_set_save_passwd (MailConfigService *service, gboolean save_passwd) +{ + service->save_passwd = save_passwd; + mail_config_write (); /*bleah*/ +} + char * mail_config_folder_to_cachename (CamelFolder *folder, const char *prefix) { -- cgit