aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-08-24 16:29:54 +0800
committerMilan Crha <mcrha@redhat.com>2010-08-24 16:29:54 +0800
commitf1d2541c487fbf7433a1b9aad8e8982ef08b85f5 (patch)
treeb1cfe2c61ab64dffc363326186c4491da6f64f55
parentd07f15d2073c3e6340dc0db404e8da3ac97a30ab (diff)
downloadgsoc2013-evolution-f1d2541c487fbf7433a1b9aad8e8982ef08b85f5.tar
gsoc2013-evolution-f1d2541c487fbf7433a1b9aad8e8982ef08b85f5.tar.gz
gsoc2013-evolution-f1d2541c487fbf7433a1b9aad8e8982ef08b85f5.tar.bz2
gsoc2013-evolution-f1d2541c487fbf7433a1b9aad8e8982ef08b85f5.tar.lz
gsoc2013-evolution-f1d2541c487fbf7433a1b9aad8e8982ef08b85f5.tar.xz
gsoc2013-evolution-f1d2541c487fbf7433a1b9aad8e8982ef08b85f5.tar.zst
gsoc2013-evolution-f1d2541c487fbf7433a1b9aad8e8982ef08b85f5.zip
Bug #573320 - "Encrypt to self" by default on newly created mail accounts
-rw-r--r--mail/em-account-editor.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c
index a6d624e54b..923e1b0c87 100644
--- a/mail/em-account-editor.c
+++ b/mail/em-account-editor.c
@@ -258,6 +258,10 @@ emae_set_original_account (EMAccountEditor *emae,
e_account_set_string (
modified_account, E_ACCOUNT_SENT_FOLDER_URI,
e_mail_local_get_folder_uri (E_MAIL_FOLDER_SENT));
+
+ /* encrypt to self by default */
+ e_account_set_bool (modified_account, E_ACCOUNT_PGP_ENCRYPT_TO_SELF, TRUE);
+ e_account_set_bool (modified_account, E_ACCOUNT_SMIME_ENCRYPT_TO_SELF, TRUE);
}
emae->priv->original_account = original_account;
@@ -1219,7 +1223,6 @@ smime_changed (EMAccountEditor *emae)
gtk_widget_set_sensitive ((GtkWidget *)priv->smime_encrypt_to_self, act);
if (!act) {
gtk_toggle_button_set_active (priv->smime_encrypt_default, FALSE);
- gtk_toggle_button_set_active (priv->smime_encrypt_to_self, FALSE);
}
}