#ifndef QMAIL_H #define QMAIL_H #include "buffer.h" // BUFFER_INSIZE = BUFFER_OUTSIZE = 8192 #define BUFSIZE_QMAIL 8192 // Memory page size #define BUFSIZE_MESS 4096 #define BUFSIZE_LINE 1024 // RFC 5322: 998 chars - why? - SMTP Line #define BUFSIZE_AUTH 512 #define BUFSIZE_OUT 512 #define BUFSIZE_LOG 256 #define BUFSIZE_SMALL 128 struct qmail { int flagerr; unsigned long pid; int fdm; int fde; buffer ss; char buf[BUFSIZE_QMAIL]; } ; extern int qmail_open(struct qmail *); extern void qmail_put(struct qmail *,char *, int); extern void qmail_puts(struct qmail *,char *); extern void qmail_from(struct qmail *,char *); extern void qmail_to(struct qmail *,char *); extern void qmail_fail(struct qmail *); extern char *qmail_close(struct qmail *); extern unsigned long qmail_qp(struct qmail *); #endif