home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / VP2_409E.SZH / DATA.C < prev    next >
Text File  |  1991-07-13  |  4KB  |  112 lines

  1. /*
  2.   $Header: data.c 3.3 87/12/12 00:40:38 Bob Exp $
  3.  
  4.                           The Conference Mail System
  5.  
  6.               This module was originally written by Bob Hartman
  7.                        Sysop of FidoNet node 1:132/101
  8.  
  9.    Spark Software, 427-3 Amherst St, CS 2032, Suite 232, Nashua, NH 03061
  10.  
  11.  The Conference Mail System  is a  complete Echomail processing package.  It
  12.  is a superset of the original  Echomail utilities created by Jeff Rush, and
  13.  also contains ideas gleaned from the  ARCmail,  Renum,  oMMM, MGM, and Opus
  14.  programs that were created by various software authors.
  15.  
  16.  This program source code is being released with the following provisions:
  17.  
  18.  1.  You are  free to make  changes to this source  code for use on your own
  19.  machine,  however,  altered source files may not be distributed without the
  20.  consent of Spark Software.
  21.  
  22.  2.  You may distribute "patches"  or  "diff" files for any changes that you
  23.  have made, provided that the "patch" or "diff" files are also sent to Spark
  24.  Software for inclusion in future releases of the entire package.   A "diff"
  25.  file for the source archives may also contain a compiled version,  provided
  26.  it is  clearly marked as not  being created  from the original source code.
  27.  No other  executable  versions may be  distributed without  the  consent of
  28.  Spark Software.
  29.  
  30.  3.  You are free to include portions of this source code in any program you
  31.  develop, providing:  a) Credit is given to Spark Software for any code that
  32.  may is used, and  b) The resulting program is free to anyone wanting to use
  33.  it, including commercial and government users.
  34.  
  35.  4.  There is  NO  technical support  available for dealing with this source
  36.  code, or the accompanying executable files.  This source  code  is provided
  37.  as is, with no warranty expressed or implied (I hate legalease).   In other
  38.  words, if you don't know what to do with it,  don't use it,  and if you are
  39.  brave enough to use it, you're on your own.
  40.  
  41.  Spark Software may be contacted by modem at (603) 888-8179 (node 1:132/101)
  42.  on the public FidoNet network, or at the address given above.
  43.  
  44.  To use this code you will need Microsoft C version 4.0, and also Microsoft
  45.  Macro Assembler version 4.0.
  46.  
  47. */
  48.  
  49. /*
  50.    $Log:    data.c $
  51.  * Revision 3.3  87/12/12  00:40:38  Bob
  52.  * Source code release
  53.  *
  54. */
  55.  
  56. #include <stdio.h>
  57. #include <ctype.h>
  58. #include <time.h>
  59. #include "fastecho.h"
  60.  
  61. char tearline[40];
  62. SEACONFIG config;
  63. AREAS_PTR areas[MAXAREAS];
  64. char board_name[128], sysop_name[128];
  65. int tot_areas = 0;
  66. char bbsfile[80];
  67. char *arc_cmd[10];
  68. int arc_args = 0;
  69. int last_msg = -1;
  70. int high_one = -1;
  71. int mail_high = 0;
  72. int convert = 0;
  73. struct tm *t2;
  74. struct _stamp cur_stamp;
  75. struct _stamp zero_stamp = { 0, 0 };
  76. int msgs_done;
  77. int hwptr = 0;
  78. char *SEENBYSTR = "SEEN-BY: ";
  79. char *PATHSTR = "PATH: ";
  80. PW_PTR pw[100];
  81. int num_pw = 0;
  82. int seadog = 0;
  83. int quiet = 0;
  84. int backup = 1;
  85. int killnull = 0;
  86. int killbad = 0;
  87. char home[64];
  88. char home1[64];
  89. USR user;
  90. SYS curr_system;
  91. MSG msg_tmp, msg_tmp1;
  92. int from_file = 0;
  93.  
  94.  
  95. char *areaserr = "Out of memory compiling areas file - aborting\n";
  96. char *open_err = "\n%s could not be opened - exiting\n";
  97. char *pkt_err = "\nCould not open packet for %d/%d - starting to ARCmail\n";
  98. char *opus_date = "%02d %3.3s %02d %02d:%02d:%02d";
  99. char *fido_date = "%3.3s %2d %3.3s %02d %02d:%02d";
  100. char *mspace_err = "Could not malloc() message space, aborting\n";
  101. char *mnspace_err = "Could not malloc() message number space, aborting\n";
  102. char *ntoss_err = "Node number %d/%d not tossable";
  103. char *no_msgs = "No messages to process in message area '%s'\n";
  104. char *krcvd = "\nKilling RCVD messages in area #%s : '%s'\n";
  105. char *pass1 = "Pass 1: Scanning Messages already done\n";
  106. char *kold = "\nKilling messages more than %ld days old in area #%s : '%s'\n";
  107. char *rnum = "\nRenumbering messages in area #%s : '%s'\n";
  108. char *knum = "\nKilling messages so %d are left after first %d messages in area #%s : '%s'\n";
  109. char *noback = "\nIt seems that I can't change directories back to '%s'\n";
  110. char *noareasbbs = "No AREAS file specified, using AREAS.BBS as default\n";
  111. char *tfs = "\001FLAGS TFS\r\r";
  112.