From f1d2541c487fbf7433a1b9aad8e8982ef08b85f5 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Tue, 24 Aug 2010 10:29:54 +0200 Subject: Bug #573320 - "Encrypt to self" by default on newly created mail accounts --- mail/em-account-editor.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mail/em-account-editor.c') 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); } } -- cgit