diff options
author | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-09 11:44:11 +0200 |
---|---|---|
committer | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-09 11:44:11 +0200 |
commit | f1b71c9fe7dbb4886588a036399cf5ebe16b7c47 (patch) | |
tree | e07786aa479c9fb6ee3e537078470aaab5454f80 /src/include/qmail.h | |
parent | a293489ee83c8b05d845a162dc2a4de026f3775d (diff) |
removed top level directory
Diffstat (limited to 'src/include/qmail.h')
-rw-r--r-- | src/include/qmail.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/include/qmail.h b/src/include/qmail.h new file mode 100644 index 0000000..dd44816 --- /dev/null +++ b/src/include/qmail.h @@ -0,0 +1,30 @@ +#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_LOG 256 + +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 |