From 56b6ad0e512f3b6bf881b48e8f24bca528cf2d9d Mon Sep 17 00:00:00 2001 From: Jon Trowbridge Date: Sun, 9 Sep 2001 04:11:15 +0000 Subject: Added. Shows a (hopefully) informative dialog warning you that some 2001-09-08 Jon Trowbridge * mail-callbacks.c (ask_confirm_for_unwanted_html_mail): Added. Shows a (hopefully) informative dialog warning you that some recipients might not want HTML mail (who are listed), and gives the option to cancel sending. (FIXME: The wording of this dialog could use some work.) (composer_get_message): Check if we are sending HTML to someone who might not want it, and raise the dialog if we are. Use our new destination-vector based api when talking to the composer. Touch our destinations here, boosting their use scores. This is the right place for this to happen --- closer to the end of the sending process, where incorrect/artificial use score inflation is less likely to occur. * mail-config.c (config_read): Added /Mail/Format/confirm_unwanted_html key. This flag determines whether or not we want to see the warning dialog when we send HTML mail to contacts who don't want it. Default is TRUE. (mail_config_write_on_exit): Write out the confirm_unwanted_html key. (mail_config_get_confirm_unwanted_html): Added. (mail_config_set_confirm_unwanted_html): Added. svn path=/trunk/; revision=12712 --- mail/mail-config.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mail/mail-config.h') diff --git a/mail/mail-config.h b/mail/mail-config.h index 76aa3b60cd..d223ba1eda 100644 --- a/mail/mail-config.h +++ b/mail/mail-config.h @@ -130,6 +130,9 @@ void mail_config_set_paned_size (gint size); gboolean mail_config_get_send_html (void); void mail_config_set_send_html (gboolean send_html); +gboolean mail_config_get_confirm_unwanted_html (void); +void mail_config_set_confirm_unwanted_html (gboolean html_warning); + gboolean mail_config_get_citation_highlight (void); void mail_config_set_citation_highlight (gboolean); -- cgit