about summary refs log tree commit diff
path: root/export.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--export.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/export.c b/export.c
index f703e20..b34111f 100644
--- a/export.c
+++ b/export.c
@@ -89,10 +89,9 @@ static void exportAtom(
 		!strcmp(structure->type, "TEXT") &&
 		!strcmp(structure->subtype, "PLAIN")
 	) {
-		// TODO: Decode content into file.
 		error = 0
 			|| atomContentOpen(file)
-			|| escapeXML(file, body)
+			|| decodeContent(file, escapeXML, structure, body)
 			|| atomContentClose(file);
 		if (error) err(EX_IOERR, "%s", path);
 	}