home *** CD-ROM | disk | FTP | other *** search
- /* $Header: dest.h,v 1.1 88/06/06 09:37:48 chip Exp $
- *
- * Description of a mail destination and its state.
- *
- * $Log: dest.h,v $
- * Revision 1.1 88/06/06 09:37:48 chip
- * Initial revision
- *
- */
-
- /*----------------------------------------------------------------------
- * Destination class.
- */
-
- typedef enum {
- CL_USER, /* User name, no mailbox */
- CL_MBOX, /* User name, with mailbox name */
- CL_UUCP /* UUCP address (bang path) */
- } DCLASS;
-
- /*----------------------------------------------------------------------
- * Destination state.
- */
-
- typedef enum {
- ST_WORKING, /* the "normal" state */
- ST_HOLD, /* on hold during expansion */
- ST_DONE, /* all processing complete */
- ST_ERROR /* "something is horribly wrong" */
- } DSTATE;
-
- /*----------------------------------------------------------------------
- * Structure describing a mail destination.
- */
-
- #define DEST struct dest
- DEST {
- DEST *next; /* next destination in the chain */
- DEST *prev; /* previous destination in the chain */
- DCLASS class; /* destination class */
- DSTATE state; /* destination state */
- int dfdone; /* boolean -- delivery file was run */
- char *name; /* context for delivery */
- char *mailbox; /* mailbox name or NULL for default */
- char *error; /* error message (if state is ERROR) */
- };
-
-