aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-06-30 04:20:21 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-06-30 04:20:21 +0800
commit86d9e4453e88e3fa5f72c2c06da81aef272ed7aa (patch)
tree7216e7cb2f7e6df7b05a76baa875f4e2e12ad13d /mail/mail-config.c
parentc9562d914e2065b0813435a187f006fe3e627e94 (diff)
downloadgsoc2013-evolution-86d9e4453e88e3fa5f72c2c06da81aef272ed7aa.tar.gz
gsoc2013-evolution-86d9e4453e88e3fa5f72c2c06da81aef272ed7aa.tar.zst
gsoc2013-evolution-86d9e4453e88e3fa5f72c2c06da81aef272ed7aa.zip
Throw up the confirmation dialog. (composer_get_message): If the user only
2001-06-29 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (ask_confirm_for_only_bcc): Throw up the confirmation dialog. (composer_get_message): If the user only specified Bcc recipients, prompt him/her to make sure we should continue and risk the server adding an Apparently-To header. * mail-config.c (config_read): Read in config option for prompting when only Bcc recipients are specified. (mail_config_write_on_exit): Save the option. (mail_config_get_prompt_only_bcc): New. (mail_config_set_prompt_only_bcc): New. svn path=/trunk/; revision=10606
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r--mail/mail-config.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c
index 6d8b10ead9..c1b6f884f4 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -59,6 +59,7 @@ typedef struct {
gboolean citation_highlight;
guint32 citation_color;
gboolean prompt_empty_subject;
+ gboolean prompt_only_bcc;
gint seen_timeout;
GSList *accounts;
@@ -505,6 +506,14 @@ config_read (void)
config->prompt_empty_subject = TRUE;
g_free (str);
+ /* Only Bcc */
+ str = g_strdup_printf ("=%s/config/Mail=/Prompts/only_bcc",
+ evolution_dir);
+ config->prompt_only_bcc = gnome_config_get_bool_with_default (str, &def);
+ if (def)
+ config->prompt_only_bcc = TRUE;
+ g_free (str);
+
/* PGP/GPG */
str = g_strdup_printf ("=%s/config/Mail=/PGP/path",
evolution_dir);
@@ -759,6 +768,12 @@ mail_config_write_on_exit (void)
gnome_config_set_bool (str, config->prompt_empty_subject);
g_free (str);
+ /* Only Bcc */
+ str = g_strdup_printf ("=%s/config/Mail=/Prompts/only_bcc",
+ evolution_dir);
+ gnome_config_set_bool (str, config->prompt_only_bcc);
+ g_free (str);
+
/* PGP/GPG */
str = g_strdup_printf ("=%s/config/Mail=/PGP/path",
evolution_dir);
@@ -1021,6 +1036,18 @@ mail_config_set_prompt_empty_subject (gboolean value)
config->prompt_empty_subject = value;
}
+gboolean
+mail_config_get_prompt_only_bcc (void)
+{
+ return config->prompt_only_bcc;
+}
+
+void
+mail_config_set_prompt_only_bcc (gboolean value)
+{
+ config->prompt_only_bcc = value;
+}
+
struct {
char *bin;