]> git.pond.sub.org Git - empserver/blobdiff - include/tel.h
Factor out code to read mailboxes, and make read more robust
[empserver] / include / tel.h
index aa31c3c874db58127504f3c13e59ca27e01d4042..0df505c78c139020d1c088601ae65bceb36e0ce9 100644 (file)
@@ -34,6 +34,7 @@
 #ifndef TEL_H
 #define TEL_H
 
+#include <stdio.h>
 #include <time.h>
 #include "types.h"
 
@@ -55,5 +56,9 @@ struct telstr {
 };
 
 extern char *mailbox(char *buf, natid cn);
+extern int tel_read_header(FILE *, char *, struct telstr *);
+extern int tel_read_body(FILE *, char *, struct telstr *,
+                        int (*sink)(char *, size_t, void *),
+                        void *);
 
 #endif