about summary refs log tree commit diff
path: root/html.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/html.c b/html.c
index 34ffb16..c3b47fd 100644
--- a/html.c
+++ b/html.c
@@ -180,7 +180,7 @@ int htmlMessageNav(FILE *file, const struct Envelope *envelope) {
 	return error;
 }
 
-int htmlMessageOpen(FILE *file, const struct Envelope *envelope) {
+int htmlMessageOpen(FILE *file, const struct Envelope *envelope, bool nested) {
 	char *fragment = htmlFragment(envelope->messageID);
 	char *mailto = htmlMailto(envelope->from);
 	const char *template = Q(
@@ -206,7 +206,7 @@ int htmlMessageOpen(FILE *file, const struct Envelope *envelope) {
 		|| templateRender(file, template, vars, escapeXML)
 		|| htmlAddressList(file, "To", envelope->to)
 		|| htmlAddressList(file, "Cc", envelope->cc)
-		|| htmlMessageNav(file, envelope)
+		|| (nested ? 0 : htmlMessageNav(file, envelope))
 		|| templateRender(file, Q(</header>), NULL, NULL);
 	free(fragment);
 	free(mailto);