about summary refs log tree commit diff
path: root/archive.h
diff options
context:
space:
mode:
Diffstat (limited to 'archive.h')
-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);
ghtingJune McEnroe 2022-06-02Clean up parsing a littleJune McEnroe 2022-06-02Don't duplicate path stringJune McEnroe 2022-06-02Use stderr instead of /dev/tty, realloc buffer if lines too longJune McEnroe For some reason I haven't been able to figure out, trying to poll /dev/tty returns POLLNVAL (and this was using 100% CPU looping), but using stderr instead works fine. 2022-06-02Add initial working version of qfJune McEnroe 2022-05-29Set prompt for okshJune McEnroe