about summary refs log tree commit diff
path: root/archive.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-09 21:59:21 -0400
committerJune McEnroe <june@causal.agency>2020-04-09 21:59:48 -0400
commit84aae6ed294e369c5edf755ef60fb963ce3bd7f7 (patch)
treec52743cb1cda5b6018b5ecf77c1e0dbeaf6276dc /archive.c
parentFactor out templateURL (diff)
downloadbubger-84aae6ed294e369c5edf755ef60fb963ce3bd7f7.tar.gz
bubger-84aae6ed294e369c5edf755ef60fb963ce3bd7f7.zip
Render Atom envelopes
Diffstat (limited to '')
-rw-r--r--archive.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/archive.c b/archive.c
index ca56c8c..b045a7a 100644
--- a/archive.c
+++ b/archive.c
@@ -263,6 +263,13 @@ static void exportMessage(struct List items) {
 		|| fclose(file);
 	if (error) err(EX_IOERR, "%s", path);
 
+	path = uidPath(uid, "atom");
+	file = fopen(path, "w");
+	if (!file) err(EX_CANTCREAT, "%s", path);
+	error = atomEnvelope(file, &envelope)
+		|| fclose(file);
+	if (error) err(EX_IOERR, "%s", path);
+
 	envelopeFree(envelope);
 }