aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r--mail/mail-config.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c
index 68b310daa0..fc8290948b 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -62,6 +62,7 @@ typedef struct {
gboolean hide_deleted;
gint paned_size;
gboolean send_html;
+ gboolean confirm_unwanted_html;
gboolean citation_highlight;
guint32 citation_color;
gboolean prompt_empty_subject;
@@ -489,6 +490,10 @@ config_read (void)
/* Format */
config->send_html = bonobo_config_get_boolean_with_default (config->db,
"/Mail/Format/send_html", FALSE, NULL);
+
+ /* Confirm Sending Unwanted HTML */
+ config->confirm_unwanted_html = bonobo_config_get_boolean_with_default (config->db,
+ "/Mail/Format/confirm_unwanted_html", TRUE, NULL);
/* Citation */
config->citation_highlight = bonobo_config_get_boolean_with_default (
@@ -798,6 +803,10 @@ mail_config_write_on_exit (void)
/* Format */
bonobo_config_set_boolean (config->db, "/Mail/Format/send_html",
config->send_html, NULL);
+
+ /* Confirm Sending Unwanted HTML */
+ bonobo_config_set_boolean (config->db, "/Mail/Format/confirm_unwanted_html",
+ config->confirm_unwanted_html, NULL);
/* Citation */
bonobo_config_set_boolean (config->db,
@@ -1096,6 +1105,18 @@ mail_config_set_send_html (gboolean send_html)
}
gboolean
+mail_config_get_confirm_unwanted_html (void)
+{
+ return config->confirm_unwanted_html;
+}
+
+void
+mail_config_set_confirm_unwanted_html (gboolean confirm)
+{
+ config->confirm_unwanted_html = confirm;
+}
+
+gboolean
mail_config_get_citation_highlight (void)
{
return config->citation_highlight;