aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-02-09 06:57:34 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-02-09 06:57:34 +0800
commit18df0dfdf27495931b1aed2e8f88942d44eedc7e (patch)
tree69fb538eb670604a20414bba903f0f9caa85e39a /mail/mail-config.c
parent56f97fa4b440719e412b9e56e833f88b0e130d05 (diff)
downloadgsoc2013-evolution-18df0dfdf27495931b1aed2e8f88942d44eedc7e.tar
gsoc2013-evolution-18df0dfdf27495931b1aed2e8f88942d44eedc7e.tar.gz
gsoc2013-evolution-18df0dfdf27495931b1aed2e8f88942d44eedc7e.tar.bz2
gsoc2013-evolution-18df0dfdf27495931b1aed2e8f88942d44eedc7e.tar.lz
gsoc2013-evolution-18df0dfdf27495931b1aed2e8f88942d44eedc7e.tar.xz
gsoc2013-evolution-18df0dfdf27495931b1aed2e8f88942d44eedc7e.tar.zst
gsoc2013-evolution-18df0dfdf27495931b1aed2e8f88942d44eedc7e.zip
Cast the CamelMedium to a CamelMimePart before performing actions on it as
2001-02-08 Jeffrey Stedfast <fejj@ximian.com> * mail-display.c (on_object_requested): Cast the CamelMedium to a CamelMimePart before performing actions on it as if it were a CamelMimePart. * mail-config-druid.c (druid_finish): Save the auto-check settings. (construct): Initialize auto-check widgets. (mail_config_druid_get_auto_check): New function (mail_config_druid_get_auto_check_minutes): New functions * mail-config.c (config_read): Read in whether or not to check every x minutes. (mail_config_write): Save auto-check config data and SSL. svn path=/trunk/; revision=8126
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r--mail/mail-config.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c
index a4f9c15a86..3076ebacef 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -99,6 +99,8 @@ service_copy (const MailConfigService *source)
new = g_new0 (MailConfigService, 1);
new->url = g_strdup (source->url);
new->keep_on_server = source->keep_on_server;
+ new->auto_check = source->auto_check;
+ new->auto_check_time = source->auto_check_time;
new->save_passwd = source->save_passwd;
new->use_ssl = source->use_ssl;
@@ -260,6 +262,12 @@ config_read (void)
path = g_strdup_printf ("source_keep_on_server_%d", i);
source->keep_on_server = gnome_config_get_bool (path);
g_free (path);
+ path = g_strdup_printf ("source_auto_check_%d", i);
+ source->auto_check = gnome_config_get_bool (path);
+ g_free (path);
+ path = g_strdup_printf ("source_auto_check_time_%d", i);
+ source->auto_check_time = gnome_config_get_int (path);
+ g_free (path);
path = g_strdup_printf ("source_save_passwd_%d", i);
source->save_passwd = gnome_config_get_bool (path);
g_free (path);
@@ -402,9 +410,18 @@ mail_config_write (void)
path = g_strdup_printf ("source_keep_on_server_%d", i);
gnome_config_set_bool (path, account->source->keep_on_server);
g_free (path);
+ path = g_strdup_printf ("source_auto_check_%d", i);
+ gnome_config_set_bool (path, account->source->auto_check);
+ g_free (path);
+ path = g_strdup_printf ("source_auto_check_time_%d", i);
+ gnome_config_set_int (path, account->source->auto_check_time);
+ g_free (path);
path = g_strdup_printf ("source_save_passwd_%d", i);
gnome_config_set_bool (path, account->source->save_passwd);
g_free (path);
+ path = g_strdup_printf ("source_use_ssl_%d", i);
+ gnome_config_set_bool (path, account->source->use_ssl);
+ g_free (path);
/* transport info */
path = g_strdup_printf ("transport_url_%d", i);