summary refs log tree commit diff
path: root/export.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-04-21 16:58:29 -0400
committerJune McEnroe <june@causal.agency>2021-04-21 16:59:50 -0400
commit2c5451f8d0ba7ffac3b0c117dd66303909e7ea32 (patch)
treed6a8fc4ba69309ac3e0006eb11be3c299214271e /export.c
parentParse dates in a hopefully more portable fashion (diff)
downloadbubger-2c5451f8d0ba7ffac3b0c117dd66303909e7ea32.tar.gz
bubger-2c5451f8d0ba7ffac3b0c117dd66303909e7ea32.zip
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.
Diffstat (limited to '')
-rw-r--r--export.c4
1 files changed, 2 insertions, 2 deletions
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};
21-09-21Rewrite pngo, add explicit optionsJune McEnroe 2021-09-16Fix /* **/ comment matchingJune McEnroe 2021-09-15Remove typer, add downgrade to READMEJune McEnroe 2021-09-15Set bot mode on downgradeJune McEnroe 2021-09-15Enter capsicum in downgradeJune McEnroe 2021-09-15Factor out common parts of downgrade messagesJune McEnroe 2021-09-14Add downgrade IRC botJune McEnroe 2021-09-14Sort by title if authors matchJune McEnroe 2021-09-13Swap-remove tags as they're foundJune McEnroe 2021-09-12Replace htagml regex with strncmpJune McEnroe 2021-09-11Also defer printing comment for lone close-parensJune McEnroe 2021-09-10Publish "git-comment"June McEnroe 2021-09-10Add git comment --pretty optionJune McEnroe 2021-09-08Defer printing comment if line is blank or closing braceJune McEnroe 2021-09-08Up default min-repeat to 30 linesJune McEnroe 2021-09-08Handle dirty lines in git-commentJune McEnroe 2021-09-08Document and install git-commentJune McEnroe 2021-09-08Add repeat and all options to git-commentJune McEnroe 2021-09-08Add group threshold to git-commentJune McEnroe