about summary refs log tree commit diff
path: root/export.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-10 17:22:13 -0400
committerJune McEnroe <june@causal.agency>2020-04-10 17:22:13 -0400
commit93aa78f326683d14f243f74809f7bf000d7faebf (patch)
tree31226dad12ccc6dac51d6649d514a84cf9132a61 /export.c
parentConcatenate mbox threads (diff)
downloadbubger-93aa78f326683d14f243f74809f7bf000d7faebf.tar.gz
bubger-93aa78f326683d14f243f74809f7bf000d7faebf.zip
Concatenate Atom threads
Diffstat (limited to 'export.c')
-rw-r--r--export.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/export.c b/export.c
index 3e0933d..dcd6b18 100644
--- a/export.c
+++ b/export.c
@@ -134,7 +134,8 @@ void exportData(struct List items) {
 	path = uidPath(uid, "atom");
 	file = fopen(path, "w");
 	if (!file) err(EX_CANTCREAT, "%s", path);
-	error = atomEnvelope(file, &envelope)
+	error = atomEntryHead(file, &envelope)
+		|| atomEntryTail(file)
 		|| fclose(file);
 	if (error) err(EX_IOERR, "%s", path);