From 2c5451f8d0ba7ffac3b0c117dd66303909e7ea32 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Wed, 21 Apr 2021 16:58:29 -0400 Subject: Omit HTML nav from nested messages We don't output mbox for nested messages, nor do we necessarily have a parent message on the same page. --- export.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'export.c') diff --git a/export.c b/export.c index ef1d526..bebd524 100644 --- a/export.c +++ b/export.c @@ -260,7 +260,7 @@ static int exportHTMLBody( } else if (part->message.structure) { const struct BodyPart *structure = part->message.structure; int error = 0 - || htmlMessageOpen(file, part->message.envelope) + || htmlMessageOpen(file, part->message.envelope, true) || exportHTMLBody(file, envelope, section, structure, body) || htmlMessageClose(file); return error; @@ -284,7 +284,7 @@ static void exportHTML( FILE *file = fopen(path, "w"); if (!file) err(EX_CANTCREAT, "%s", path); - int error = htmlMessageOpen(file, envelope); + int error = htmlMessageOpen(file, envelope, false); if (error) err(EX_IOERR, "%s", path); struct List section = {0}; -- cgit 1.4.1