From aa5164b8fad3137f68a14a11bcc188c76f70e96d Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sun, 29 Nov 2020 17:44:32 -0500 Subject: Fix section spec of multipart/alternative fallback export They were being exported with paths like "attachment/messageID//INLINE.HTML". --- export.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/export.c b/export.c index 1b6d298..f060c0b 100644 --- a/export.c +++ b/export.c @@ -231,11 +231,15 @@ static int exportHTMLBody( &part->parts.ptr[i], dataCheck(body, List).list.ptr[i] ); } - return exportHTMLBody( + struct Data num = { .type = Number, .number = part->parts.len }; + listPush(section, num); + int error = exportHTMLBody( file, envelope, section, &part->parts.ptr[part->parts.len - 1], dataCheck(body, List).list.ptr[part->parts.len - 1] ); + section->len--; + return error; } else if (part->multipart) { int error; -- cgit 1.4.1