diff options
author | June McEnroe <june@causal.agency> | 2020-04-09 16:37:28 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-04-09 16:37:28 -0400 |
commit | 1e302b4e07d5229869821aa6240520420304d3f1 (patch) | |
tree | 6396fb032cf925bee630152c0b927520ad465617 /archive.h | |
parent | Parse envelopes (diff) | |
download | bubger-1e302b4e07d5229869821aa6240520420304d3f1.tar.gz bubger-1e302b4e07d5229869821aa6240520420304d3f1.zip |
Export mbox files
Diffstat (limited to '')
-rw-r--r-- | archive.h | 9 |
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); |