Add a "don't sign meeting requests" option to the security pane, since

* mail-config.glade: Add a "don't sign meeting requests" option to
	the security pane, since some versions of Outlook won't recognize
	pgp-signed meeting requests. Sigh.

	* mail-config.c (account_copy, config_read, mail_config_write):
	Handle pgp_no_imip_sign.

	* mail-account-gui.c (mail_account_gui_new,
	mail_account_gui_save): Setup/save "don't sign meeting requests"
	button.

svn path=/trunk/; revision=17778
This commit is contained in:
Dan Winship
2002-08-15 13:16:07 +00:00
parent 7dc4b13d47
commit aa593c3d2f
6 changed files with 42 additions and 0 deletions

View File

@ -1,3 +1,16 @@
2002-08-14 Dan Winship <danw@ximian.com>
* mail-config.glade: Add a "don't sign meeting requests" option to
the security pane, since some versions of Outlook won't recognize
pgp-signed meeting requests. Sigh.
* mail-config.c (account_copy, config_read, mail_config_write):
Handle pgp_no_imip_sign.
* mail-account-gui.c (mail_account_gui_new,
mail_account_gui_save): Setup/save "don't sign meeting requests"
button.
2002-08-13 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (forward_message): Removed an unused variable.

View File

@ -1503,6 +1503,8 @@ mail_account_gui_new (MailConfigAccount *account, MailAccountsTab *dialog)
gtk_toggle_button_set_active (gui->pgp_encrypt_to_self, account->pgp_encrypt_to_self);
gui->pgp_always_sign = GTK_TOGGLE_BUTTON (glade_xml_get_widget (gui->xml, "pgp_always_sign"));
gtk_toggle_button_set_active (gui->pgp_always_sign, account->pgp_always_sign);
gui->pgp_no_imip_sign = GTK_TOGGLE_BUTTON (glade_xml_get_widget (gui->xml, "pgp_no_imip_sign"));
gtk_toggle_button_set_active (gui->pgp_no_imip_sign, account->pgp_no_imip_sign);
gui->pgp_always_trust = GTK_TOGGLE_BUTTON (glade_xml_get_widget (gui->xml, "pgp_always_trust"));
gtk_toggle_button_set_active (gui->pgp_always_trust, account->pgp_always_trust);
@ -1926,6 +1928,7 @@ mail_account_gui_save (MailAccountGui *gui)
account->pgp_key = e_utf8_gtk_entry_get_text (gui->pgp_key);
account->pgp_encrypt_to_self = gtk_toggle_button_get_active (gui->pgp_encrypt_to_self);
account->pgp_always_sign = gtk_toggle_button_get_active (gui->pgp_always_sign);
account->pgp_no_imip_sign = gtk_toggle_button_get_active (gui->pgp_no_imip_sign);
account->pgp_always_trust = gtk_toggle_button_get_active (gui->pgp_always_trust);
#if defined (HAVE_NSS) && defined (SMIME_SUPPORTED)

View File

@ -107,6 +107,7 @@ typedef struct {
GtkEntry *pgp_key;
GtkToggleButton *pgp_encrypt_to_self;
GtkToggleButton *pgp_always_sign;
GtkToggleButton *pgp_no_imip_sign;
GtkToggleButton *pgp_always_trust;
GtkEntry *smime_key;
GtkToggleButton *smime_encrypt_to_self;

View File

@ -268,6 +268,7 @@ account_copy (const MailConfigAccount *account)
new->pgp_key = g_strdup (account->pgp_key);
new->pgp_encrypt_to_self = account->pgp_encrypt_to_self;
new->pgp_always_sign = account->pgp_always_sign;
new->pgp_no_imip_sign = account->pgp_no_imip_sign;
new->pgp_always_trust = account->pgp_always_trust;
new->smime_key = g_strdup (account->smime_key);
@ -689,6 +690,11 @@ config_read (void)
config->db, path, FALSE, NULL);
g_free (path);
path = g_strdup_printf ("/Mail/Accounts/account_pgp_no_imip_sign_%d", i);
account->pgp_no_imip_sign = bonobo_config_get_boolean_with_default (
config->db, path, FALSE, 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);
@ -1086,6 +1092,10 @@ mail_config_write (void)
bonobo_config_set_boolean (config->db, path, account->pgp_always_sign, NULL);
g_free (path);
path = g_strdup_printf ("/Mail/Accounts/account_pgp_no_imip_sign_%d", i);
bonobo_config_set_boolean (config->db, path, account->pgp_no_imip_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);

View File

@ -2177,6 +2177,20 @@ Kerberos
</child>
</widget>
<widget>
<class>GtkCheckButton</class>
<name>pgp_no_imip_sign</name>
<can_focus>True</can_focus>
<label>Don't sign _meeting requests (for Outlook compatibility)</label>
<active>False</active>
<draw_indicator>True</draw_indicator>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
<widget>
<class>GtkCheckButton</class>
<name>pgp_encrypt_to_self</name>

View File

@ -83,6 +83,7 @@ typedef struct {
char *pgp_key;
gboolean pgp_encrypt_to_self;
gboolean pgp_always_sign;
gboolean pgp_no_imip_sign;
gboolean pgp_always_trust;
char *smime_key;