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.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;