home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume36 / uqwk / part01 / uqwk.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-03-11  |  597 b   |  39 lines

  1. #include <stdio.h>
  2. #include <string.h>
  3. #include "uqwk.h"
  4.  
  5. /*
  6.  *  Try to make QWK packets from a mail and/or news spool
  7.  */
  8.  
  9. main (argc, argv)
  10. int argc;
  11. char *argv[];
  12. {
  13.     progname = argv[0];
  14.  
  15.     /* Set up defaults */
  16.     DefaultOptions();
  17.  
  18.     /* Look for environment variable overrides */
  19.     EnvOptions();
  20.  
  21.     /* Look for command line overrides */
  22.     CommandOptions (argc, argv);
  23.  
  24.     /* Initialize files, etc. */
  25.     InitStuff();
  26.  
  27.     /* Do reply packet? */
  28.     if (strcmp (rep_file, DEF_REP_FILE)) DoReply();
  29.  
  30.     /* Do news? */
  31.     if (do_news) DoNews();
  32.  
  33.     /* Mail? */
  34.     if (do_mail) DoMail();
  35.  
  36.     /* All done */
  37.     CloseStuff();
  38. }
  39.