aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-display.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-display.c')
-rw-r--r--mail/mail-display.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/mail/mail-display.c b/mail/mail-display.c
index a7fd33dc64..2a0748eb39 100644
--- a/mail/mail-display.c
+++ b/mail/mail-display.c
@@ -1199,13 +1199,10 @@ mail_display_redisplay (MailDisplay *md, gboolean unscroll)
mail_html_write (md->html, md->stream, "<body marginwidth=0 marginheight=0>\n");
if (md->current_message) {
- MailConfigDisplayStyle style = mail_config_get_message_display_style ();
- if (style == MAIL_CONFIG_DISPLAY_SOURCE)
+ if (md->display_style == MAIL_CONFIG_DISPLAY_SOURCE)
mail_format_raw_message (md->current_message, md);
- else {
- g_datalist_set_data (md->data, "full_headers", GINT_TO_POINTER (style == MAIL_CONFIG_DISPLAY_FULL_HEADERS));
+ else
mail_format_mime_message (md->current_message, md);
- }
}
mail_html_write (md->html, md->stream, "</body></html>\n");
@@ -1278,6 +1275,8 @@ mail_display_init (GtkObject *object)
mail_display->data = NULL;
mail_display->invisible = gtk_invisible_new ();
+
+ mail_display->display_style = mail_config_get_message_display_style ();
}
static void