diff options
author | June McEnroe <june@causal.agency> | 2020-04-09 21:59:21 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-04-09 21:59:48 -0400 |
commit | 84aae6ed294e369c5edf755ef60fb963ce3bd7f7 (patch) | |
tree | c52743cb1cda5b6018b5ecf77c1e0dbeaf6276dc /archive.c | |
parent | Factor out templateURL (diff) | |
download | bubger-84aae6ed294e369c5edf755ef60fb963ce3bd7f7.tar.gz bubger-84aae6ed294e369c5edf755ef60fb963ce3bd7f7.zip |
Render Atom envelopes
Diffstat (limited to '')
-rw-r--r-- | archive.c | 7 |
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); } |