aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/em-utils.c')
-rw-r--r--mail/em-utils.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/mail/em-utils.c b/mail/em-utils.c
index 5a99ded76c..0e341e44c6 100644
--- a/mail/em-utils.c
+++ b/mail/em-utils.c
@@ -1458,6 +1458,18 @@ em_utils_message_to_html(CamelMimeMessage *message, const char *credits, guint32
emfq = em_format_quote_new(credits, (CamelStream *)mem, flags);
em_format_set_session((EMFormat *)emfq, session);
+
+ if (!source) {
+ GConfClient *gconf;
+ char *charset;
+
+ gconf = gconf_client_get_default ();
+ charset = gconf_client_get_string (gconf, "/apps/evolution/mail/display/charset", NULL);
+ em_format_set_default_charset ((EMFormat *) emfq, charset);
+ g_object_unref (gconf);
+ g_free (charset);
+ }
+
em_format_format_clone((EMFormat *)emfq, NULL, NULL, message, source);
g_object_unref (emfq);