diff options
author | José Fonseca <jrfonseca@users.sourceforge.net> | 2003-07-03 17:37:11 +0000 |
---|---|---|
committer | José Fonseca <jrfonseca@users.sourceforge.net> | 2003-07-03 17:37:11 +0000 |
commit | 2867d16bc9bae9764904efbf44cd5131fca1bc9b (patch) | |
tree | 1e910b1566a40e9b02961bf5aed2958b9fa7b974 /main.h | |
parent | 2b266bab3687c078061c7b8bf3676ef3a61d53a7 (diff) |
Modularization of the code.
Hability to get the recipients from the message headers.
Local delivery via a MDA.
Diffstat (limited to 'main.h')
-rw-r--r-- | main.h | 43 |
1 files changed, 43 insertions, 0 deletions
@@ -0,0 +1,43 @@ +/** + * \file main.h + * Global declarations. + */ + +#ifndef _MAIN_H +#define _MAIN_H + + +#include <stdio.h> + +/** + * Error codes as specified in sendmail's sysexits.h + */ +enum { + EX_OK = 0, /**< successful termination */ + EX_USAGE = 64, /**< command line usage error */ + EX_DATAERR = 65, /**< data format error */ + EX_NOINPUT = 66, /**< cannot open input */ + EX_NOUSER = 67, /**< addressee unknown */ + EX_NOHOST = 68, /**< host name unknown */ + EX_UNAVAILABLE = 69, /**< service unavailable */ + EX_SOFTWARE = 70, /**< internal software error */ + EX_OSERR = 71, /**< system error (e.g., can't fork) */ + EX_OSFILE = 72, /**< critical OS file missing */ + EX_CANTCREAT = 73, /**< can't create (user) output file */ + EX_IOERR = 74, /**< input/output error */ + EX_TEMPFAIL = 75, /**< temp failure; user is invited to retry */ + EX_PROTOCOL = 76, /**< remote error in protocol */ + EX_NOPERM = 77, /**< permission denied */ + EX_CONFIG = 78 /**< configuration error */ +}; + +extern FILE *log_fp; + +extern int verbose; + +extern char *rcfile; + + +extern void parse_rcfile(void); + +#endif |