home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume25 / listserv5.31 / part01 / src / struct.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-12-12  |  2.1 KB  |  50 lines

  1. /*
  2.   AGREEMENT: This software can be used and distributed freely as long
  3.   as you do not remove or alter the Copyright notice in the file defs.h;
  4.   this notice is #define'd in the symbol VERSION. Although you may alter
  5.   the code provided, you may not alter the functions create_header()
  6.   and create_multi_recipient_header() in list.c and listserv.c.
  7.   By using this software you are bound by this agreement.
  8.   This software comes with no warranties and cannot be sold for profit.
  9.   The AGREEMENT and COPYRIGHT notices should be included in all source
  10.   files when distributing this software.
  11.   COPYRIGHT: Copyright (c) 1991, Anastasios C. Kotsikonas
  12. */
  13.  
  14. typedef struct {
  15.   struct {
  16.     char alias [MAX_LINE],    /* as it appears in the aliases file */
  17.      comment [MAX_LINE],    /* Comment: line in the outgoing mail message */
  18.          address [MAX_LINE],    /* full email address of the list */
  19.          cmdoptions [MAX_LINE];    /* list-specific command line options */
  20.     int  disabled_commands;    /* mask of disabled commands for this list */
  21.   } lists [MAX_LISTS];        /* structure for each list */
  22.   struct {
  23.     char address [MAX_LINE],    /* full email address of the server */
  24.      comment [MAX_LINE],    /* Comment: line in the outgoing mail message */
  25.          cmdoptions [MAX_LINE],    /* listserv-specific command line options */
  26.      password [MAX_LINE];    /* for 'shutdown' and 'restart' */
  27.   } server;            /* structure for the server */
  28.   struct {
  29.     char *method;        /* mail method to use */
  30.     char env_var [MAX_LINE];    /* environment variable to use */
  31.     char mail_prog [MAX_LINE];    /* which mail program to use */
  32.   } mail;            /* mail method structure */
  33.   struct {
  34.     long int msg;        /* maximum message limit in bytes */
  35.   } limits;
  36.   char serverd_cmdoptions [MAX_LINE];/* command line options */
  37.   char manager [MAX_LINE];    /* manager of the system */
  38.   char arg [MAX_LINE];        /* temporary storage */
  39.   char organization [MAX_LINE]; /* Organization's name */
  40.   int users;            /* used by listserv when -r is given */
  41.   int frequency;        /* how often to read mail */
  42.   long int options;        /* various flags: BSD_PS, USE_TELNET, etc. */
  43. } SYS;
  44.  
  45. typedef struct {
  46.   char *name;
  47.   int  mask;
  48.   void (*func)();
  49. } COMMANDS;
  50.