diff options
Diffstat (limited to '')
-rw-r--r-- | export.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/export.c b/export.c index dcd6b18..0f35602 100644 --- a/export.c +++ b/export.c @@ -127,7 +127,8 @@ void exportData(struct List items) { path = uidPath(uid, "html"); file = fopen(path, "w"); if (!file) err(EX_CANTCREAT, "%s", path); - error = htmlEnvelope(file, &envelope) + error = htmlMessageHead(file, &envelope) + || htmlMessageTail(file) || fclose(file); if (error) err(EX_IOERR, "%s", path); |