home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume16 / deliver / part01 / dest.h < prev    next >
Text File  |  1988-11-14  |  2KB  |  48 lines

  1. /* $Header: dest.h,v 1.1 88/06/06 09:37:48 chip Exp $
  2.  *
  3.  * Description of a mail destination and its state.
  4.  *
  5.  * $Log:    dest.h,v $
  6.  * Revision 1.1  88/06/06  09:37:48  chip
  7.  * Initial revision
  8.  * 
  9.  */
  10.  
  11. /*----------------------------------------------------------------------
  12.  * Destination class.
  13.  */
  14.  
  15. typedef enum {
  16.     CL_USER,                /* User name, no mailbox                */
  17.     CL_MBOX,                /* User name, with mailbox name         */
  18.     CL_UUCP                 /* UUCP address (bang path)             */
  19. } DCLASS;
  20.  
  21. /*----------------------------------------------------------------------
  22.  * Destination state.
  23.  */
  24.  
  25. typedef enum {
  26.     ST_WORKING,             /* the "normal" state                   */
  27.     ST_HOLD,                /* on hold during expansion             */
  28.     ST_DONE,                /* all processing complete              */
  29.     ST_ERROR                /* "something is horribly wrong"        */
  30. } DSTATE;
  31.  
  32. /*----------------------------------------------------------------------
  33.  * Structure describing a mail destination.
  34.  */
  35.  
  36. #define DEST    struct dest
  37. DEST {
  38.     DEST    *next;          /* next destination in the chain        */
  39.     DEST    *prev;          /* previous destination in the chain    */
  40.     DCLASS  class;          /* destination class                    */
  41.     DSTATE  state;          /* destination state                    */
  42.     int     dfdone;         /* boolean -- delivery file was run     */
  43.     char    *name;          /* context for delivery                 */
  44.     char    *mailbox;       /* mailbox name or NULL for default     */
  45.     char    *error;         /* error message (if state is ERROR)    */
  46. };
  47.  
  48.