summary refs log tree commit diff
path: root/archive.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-09 16:37:28 -0400
committerJune McEnroe <june@causal.agency>2020-04-09 16:37:28 -0400
commit1e302b4e07d5229869821aa6240520420304d3f1 (patch)
tree6396fb032cf925bee630152c0b927520ad465617 /archive.h
parentParse envelopes (diff)
downloadbubger-1e302b4e07d5229869821aa6240520420304d3f1.tar.gz
bubger-1e302b4e07d5229869821aa6240520420304d3f1.zip
Export mbox files
Diffstat (limited to '')
-rw-r--r--archive.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/archive.h b/archive.h
index 9ec1f89..d804021 100644
--- a/archive.h
+++ b/archive.h
@@ -55,3 +55,12 @@ static inline void envelopeFree(struct Envelope envelope) {
 	free(envelope.cc.addrs);
 	free(envelope.bcc.addrs);
 }
+
+#define MBOX_HEADERS \
+	"Date Subject From Sender Reply-To To Cc Bcc " \
+	"Message-Id In-Reply-To References " \
+	"MIME-Version Content-Type Content-Disposition Content-Transfer-Encoding"
+
+int mboxFrom(FILE *file);
+int mboxHeader(FILE *file, char *header);
+int mboxBody(FILE *file, char *body);