about summary refs log tree commit diff
path: root/export.c
diff options
context:
space:
mode:
Diffstat (limited to 'export.c')
-rw-r--r--export.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/export.c b/export.c
index 52f6f88..f703e20 100644
--- a/export.c
+++ b/export.c
@@ -111,13 +111,19 @@ static void exportFetchParts(
 			exportFetchParts(imap, parts, &structure->parts.ptr[i]);
 			parts->len--;
 		}
-	} else if (structure->message.structure) {
+	} else if (
+		structure->message.structure &&
+		structure->message.structure->multipart
+	) {
 		exportFetchParts(imap, parts, structure->message.structure);
 	} else {
 		fprintf(imap, " BODY[");
 		for (size_t i = 0; i < parts->len; ++i) {
 			fprintf(imap, "%s%" PRIu32, (i ? "." : ""), parts->ptr[i].number);
 		}
+		if (structure->message.structure) {
+			fprintf(imap, ".TEXT");
+		}
 		fprintf(imap, "]");
 	}
 }
>2020-11-24Import LibreSSL 3.3.0June McEnroe 2020-10-22Import LibreSSL 3.2.2June McEnroe 2020-09-29Import LibreSSL 3.2.1June McEnroe 2020-09-29import: Add m4/ax_add_fortify_source.m4June McEnroe 2020-08-05build: Add README.7 to EXTRA_DIST 3.2.0June McEnroe 2020-08-03doc: Indicate that only OpenSSL 1.1.1b and newer workJune McEnroe