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.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c
index 47a2392767..78107cce95 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -39,6 +39,7 @@ typedef struct {
gboolean view_source;
gint paned_size;
gboolean send_html;
+ gboolean prompt_empty_subject;
gint seen_timeout;
GSList *accounts;
@@ -331,6 +332,12 @@ config_read (void)
config->paned_size = gnome_config_get_int (str);
g_free (str);
+ /* Empty Subject */
+ str = g_strdup_printf ("=%s/config/Mail=/Prompts/empty_subject=true",
+ evolution_dir);
+ config->prompt_empty_subject = gnome_config_get_bool (str);
+ g_free (str);
+
gnome_config_sync ();
}
@@ -424,6 +431,12 @@ mail_config_write (void)
gnome_config_set_bool (str, config->send_html);
g_free (str);
+ /* Empty Subject */
+ str = g_strdup_printf ("=%s/config/Mail=/Prompts/empty_subject",
+ evolution_dir);
+ gnome_config_set_bool (str, config->prompt_empty_subject);
+ g_free (str);
+
gnome_config_sync ();
}
@@ -526,6 +539,18 @@ mail_config_set_mark_as_seen_timeout (gint timeout)
config->seen_timeout = timeout;
}
+gboolean
+mail_config_get_prompt_empty_subject (void)
+{
+ return config->prompt_empty_subject;
+}
+
+void
+mail_config_set_prompt_empty_subject (gboolean value)
+{
+ config->prompt_empty_subject = value;
+}
+
const MailConfigAccount *
mail_config_get_default_account (void)
{