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 3a76d57805..bead41108f 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -67,6 +67,7 @@ typedef struct {
CamelPgpType pgp_type;
MailConfigHTTPMode http_mode;
+ MailConfigForwardStyle default_forward_style;
} MailConfig;
static const char GCONFPATH[] = "/apps/Evolution/Mail";
@@ -460,6 +461,14 @@ config_read (void)
config->http_mode = MAIL_CONFIG_HTTP_NEVER;
g_free (str);
+ /* Forwarding */
+ str = g_strdup_printf ("=%s/config/Mail=/Format/defaul_forward_style",
+ evolution_dir);
+ config->default_forward_style = gnome_config_get_int_with_default (str, &def);
+ if (def)
+ config->default_forward_style = MAIL_CONFIG_FORWARD_ATTACHED;
+ g_free (str);
+
gnome_config_sync ();
}
@@ -642,6 +651,12 @@ mail_config_write_on_exit (void)
gnome_config_set_int (str, config->http_mode);
g_free (str);
+ /* Forwarding */
+ str = g_strdup_printf ("=%s/config/Mail=/Format/default_forward_style",
+ evolution_dir);
+ gnome_config_set_int (str, config->default_forward_style);
+ g_free (str);
+
/* Passwords */
gnome_config_private_clean_section ("/Evolution/Passwords");
sources = mail_config_get_sources ();
@@ -886,6 +901,18 @@ mail_config_set_http_mode (MailConfigHTTPMode mode)
config->http_mode = mode;
}
+MailConfigForwardStyle
+mail_config_get_default_forward_style (void)
+{
+ return config->default_forward_style;
+}
+
+void
+mail_config_set_default_forward_style (MailConfigForwardStyle style)
+{
+ config->default_forward_style = style;
+}
+
const MailConfigAccount *
mail_config_get_default_account (void)
{