home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume25 / listserv5.31 / part01 / src / list.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-12-12  |  2.8 KB  |  70 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.   Below are the #define's pertinent to list.c
  14.  
  15.   Preserve any quotes and new lines that appear below; change only path names.
  16.  
  17.   ALWAYS SPECIFY ABSOLUTE PATHS.
  18.  
  19. */
  20.  
  21. #define MAIL_COPY         ".messages"
  22. #define MSG               ".msg"
  23. #define MAILFORWARD       ".mailforward"
  24. #define MSG_NO            ".msgno"
  25. #define MBOX              "mbox"            /* place to save list's messages */
  26. #define FROM              "From: " /* Keep this line and the following from */
  27. #define ORIGIN          "Originator: "
  28. #define REPLY_TO      "Reply-To: "
  29. #define NO_RECIPIENT_FILE "NONE"
  30.  
  31. #define PREPEND(str, buf) \
  32.   { char copy [1024];\
  33.     RESET (copy);\
  34.     strcat (copy, buf);\
  35.     sprintf (buf, "%s%s", str, copy);\
  36.   }
  37.  
  38. char mboxf [MAX_LINE];
  39. char msg_nof [MAX_LINE];
  40. char mailforwardf [MAX_LINE];
  41. char msgf [MAX_LINE];
  42. char mail_copyf [MAX_LINE];
  43. char list_moderated_f [MAX_LINE];
  44. char **multi_recipients;  /* List of multiple recipient addresses */
  45. char *list_alias  = NULL; /* arg to the -L command option */
  46.  
  47. FILE *mail        = NULL; /* Source of messages */
  48. FILE *report      = NULL; /* Progress report to the administrator */
  49. FILE *subscribers = NULL; /* List of subscribers */
  50. FILE *news      = NULL; /* List of newsgroups */
  51. FILE *peers      = NULL; /* List of peers */
  52. FILE *restricted  = NULL; /* List of people whose messages require special
  53.                               handling */
  54. FILE *ignored     = NULL; /* List of people whose messages are ignored */
  55. FILE *msg_no      = NULL; /* Last message count */
  56. FILE *headers     = NULL; /* File containing headers of messages only */
  57. FILE *message_ids = NULL; /* File containing message ids */
  58.  
  59. BOOLEAN tty_echo        = FALSE;/* -e option off */
  60. BOOLEAN send_to_subscribers = TRUE; /* -r option off */
  61. BOOLEAN execute_once        = FALSE;/* -1 option off */
  62. BOOLEAN errors_to_manager   = FALSE;/* -f option off */
  63. BOOLEAN multi_recip        = FALSE;/* -m option off */
  64. BOOLEAN do_not_check_subscriptions = FALSE;/* -s option off */
  65. BOOLEAN article_replies_to_author  = FALSE;/* -p option off */
  66. int     returned_msg = 0;           /* Counts the invalid messages */
  67. int     public_msg = 0;             /* Counts the public messages */
  68. int     listid = -1;
  69. int    maxrecipients = 0;
  70.