aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-display.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/e-mail-display.c')
-rw-r--r--mail/e-mail-display.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mail/e-mail-display.c b/mail/e-mail-display.c
index c0c96b5066..c3ca4d3f10 100644
--- a/mail/e-mail-display.c
+++ b/mail/e-mail-display.c
@@ -292,6 +292,11 @@ mail_display_link_clicked (GtkHTML *html,
flags |= EM_FORMAT_HTML_HEADER_BCC;
else
flags &= ~EM_FORMAT_HTML_HEADER_BCC;
+ } else if (strcmp (uri, "##HEADERS##") == 0) {
+ if (em_format_html_get_headers_state (priv->formatter) == EM_FORMAT_HTML_HEADERS_STATE_COLLAPSED)
+ em_format_html_set_headers_state (priv->formatter, EM_FORMAT_HTML_HEADERS_STATE_EXPANDED);
+ else
+ em_format_html_set_headers_state (priv->formatter, EM_FORMAT_HTML_HEADERS_STATE_COLLAPSED);
}
priv->formatter->header_wrap_flags = flags;