summary refs log tree commit diff
path: root/export.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-22 14:22:18 -0400
committerJune McEnroe <june@causal.agency>2020-04-22 14:22:18 -0400
commitddb774820edb0aa1358152ab82bfb22920f6c870 (patch)
tree23e9e257a7af34c3ccfee619976b62bf687d5867 /export.c
parentRemove HTML inline TODOs (diff)
downloadbubger-ddb774820edb0aa1358152ab82bfb22920f6c870.tar.gz
bubger-ddb774820edb0aa1358152ab82bfb22920f6c870.zip
Make sure to close attachment <ul> at end of multipart
Diffstat (limited to '')
-rw-r--r--export.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/export.c b/export.c
index 799bd7c..7a04358 100644
--- a/export.c
+++ b/export.c
@@ -228,7 +228,11 @@ static int exportHTMLBody(
 			if (error) return error;
 			section->len--;
 		}
-		return 0;
+		if (attached) {
+			return htmlAttachmentClose(file);
+		} else {
+			return 0;
+		}
 
 	} else if (part->message.structure) {
 		const struct BodyPart *structure = part->message.structure;