aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-08-18 00:33:58 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-08-18 00:33:58 +0800
commitc5f6d53e8688c2e4629439eec729d988fe4ddf67 (patch)
tree56d07ddc6446866f55071d47a75a44a4add122c2 /mail/mail-config.c
parent0899377e7c3f423bbeee2d5edd2c786ca6767204 (diff)
downloadgsoc2013-evolution-c5f6d53e8688c2e4629439eec729d988fe4ddf67.tar.gz
gsoc2013-evolution-c5f6d53e8688c2e4629439eec729d988fe4ddf67.tar.zst
gsoc2013-evolution-c5f6d53e8688c2e4629439eec729d988fe4ddf67.zip
Save the always-sign options for pgp and smime. (config_read): Read in the
2001-08-17 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c (mail_config_write): Save the always-sign options for pgp and smime. (config_read): Read in the always-save options for pgp and smime. svn path=/trunk/; revision=12156
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r--mail/mail-config.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c
index 576bea2038..6a2e8e5e6a 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -342,6 +342,11 @@ config_read (void)
else
g_free (val);
+ path = g_strdup_printf ("/Mail/Accounts/account_pgp_always_sign_%d", i);
+ account->pgp_always_sign = bonobo_config_get_boolean_with_default (
+ config->db, path, TRUE, NULL);
+ g_free (path);
+
path = g_strdup_printf ("/Mail/Accounts/account_pgp_encrypt_to_self_%d", i);
account->pgp_encrypt_to_self = bonobo_config_get_boolean_with_default (
config->db, path, TRUE, NULL);
@@ -356,6 +361,11 @@ config_read (void)
else
g_free (val);
+ path = g_strdup_printf ("/Mail/Accounts/account_smime_always_sign_%d", i);
+ account->smime_always_sign = bonobo_config_get_boolean_with_default (
+ config->db, path, TRUE, NULL);
+ g_free (path);
+
path = g_strdup_printf ("/Mail/Accounts/account_smime_encrypt_to_self_%d", i);
account->smime_encrypt_to_self = bonobo_config_get_boolean_with_default (
config->db, path, TRUE, NULL);
@@ -635,6 +645,10 @@ mail_config_write (void)
bonobo_config_set_string_wrapper (config->db, path, account->pgp_key, NULL);
g_free (path);
+ path = g_strdup_printf ("/Mail/Accounts/account_pgp_always_sign_%d", i);
+ bonobo_config_set_boolean (config->db, path, account->pgp_always_sign, NULL);
+ g_free (path);
+
path = g_strdup_printf ("/Mail/Accounts/account_pgp_encrypt_to_self_%d", i);
bonobo_config_set_boolean (config->db, path,
account->pgp_encrypt_to_self, NULL);
@@ -645,6 +659,10 @@ mail_config_write (void)
bonobo_config_set_string_wrapper (config->db, path, account->smime_key, NULL);
g_free (path);
+ path = g_strdup_printf ("/Mail/Accounts/account_smime_always_sign_%d", i);
+ bonobo_config_set_boolean (config->db, path, account->smime_always_sign, NULL);
+ g_free (path);
+
path = g_strdup_printf ("/Mail/Accounts/account_smime_encrypt_to_self_%d", i);
bonobo_config_set_boolean (config->db, path, account->smime_encrypt_to_self, NULL);
g_free (path);