home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / upchek_b.lzh / Upchek.cfg < prev    next >
Text File  |  1993-08-26  |  8KB  |  184 lines

  1. %
  2. %                         Upchek.cfg (beta)
  3. %                         August 25, 1993
  4. %                         Kim Bergman
  5. %   Upchek.cmd will look for this file, Upchek.cfg, in the directory that
  6. %   Upchek.cmd executes from.  Copy Upchek.cfg to that directory, usually
  7. %   your Max directory.
  8. %
  9. %   Lines that begin with the % character are comments and will be ignored
  10. %   by Upchek.cmd.
  11. %
  12. %   The format of this config file is fairly standard and should be 
  13. %   familiar to most Maximus sysops.  Each of the Option Lines
  14. %   (non-commented lines) below sets an option within Upchek.  Each Option
  15. %   Line is of the format:
  16. %
  17. %     <keyword> <option>
  18. %
  19. %   where <keyword> is some  more or less intuitive, single word
  20. %   description of what the option does and <option> is a single word that
  21. %   defines the option.  You must not edit the keyword itself, just the
  22. %   option.
  23. %
  24. %
  25. %   Keywords and options are case insensitive.  There must be at least one
  26. %   space between the keyword and option and several spaces is OK.  Spaces
  27. %   before the keyword and spaces and other characters after the option
  28. %   word are ignored.
  29. %
  30. %
  31. %   BADACT toggles the action Upchek takes when it finds a bad upload.
  32. %   Valid values for badact are Move, Delete and Rename.  A bad upload is
  33. %   one that:
  34. %
  35. %       1. is/contains a corrupted archive
  36. %       2. the virus scanner thinks contains a virus
  37. %       3. causes the scanner to crash
  38. %       4. has an extension that appears in the list of bad extensions you
  39. %          define below.
  40. %
  41. %   If you use Move then Upchek will move the bad file from the home 
  42. %   directory (the % directory it was uploaded to) to a directory defined
  43. %   by BADPATH.  If you use Delete the file is deleted.  If you use  
  44. %   Rename then the file is renamed by prefixing the name with "bad" and
  45. %   leaving it in the upload directory.  Uncomment one of the following
  46. %   lines.
  47. %
  48. Badact    Rename
  49. % Badact    Move
  50. % Badact    Delete
  51. %
  52. %
  53. %   LISTSCAND allows you to toggle additional information lines in the log
  54. %   file generated by Upchek.  It can have one of 2 values: True or False.
  55. %   If True then all non-archive files inside an archive are listed in the
  56. %   log.  If False, only the name of the file given to Upchek for
  57. %   processing shows in the log file.  Uncomment one of the following 2
  58. %   lines.
  59. %
  60. Listscand    True
  61. % Listscand     False
  62. %
  63. %
  64. %   WORKDIR is the pathname of a temporary work directory that Upchek will
  65. %   create, use and delete as necessary.  Use an odd name for this
  66. %   directory, something neither you nor other programs are likely to use. 
  67. %   Don't copy files to this directory unless you want them to disappear
  68. %   quickly.  On multi-line systems Virchek will append the node number to
  69. %   the directory name when it creates the temporary directory.  Uncomment
  70. %   the line below and edit the path to whatever suits your directory
  71. %   structure.  Your Max directory is a good directory for the work
  72. %   directory to be created in because you will not likely delete it in the
  73. %   future.  You do not need to create the work directory yourself,
  74. %   Upchek.cmd will create and delete it as required.
  75. %
  76. Workdir     e:\max\scn$$
  77. %
  78. %
  79. %   TEMPFIL1 and TEMPFIL2 are paths + filenames of 2 temporary work files 
  80. %   that Upchek.cmd creates, uses and deletes as necessary.  Use any
  81. %   directory and filenames that suit your directory structure.  Of course
  82. %   the directory shouldn't be one that you might need to delete later.  Do
  83. %   not use the temporary work directory designated by WORKDIR (above)
  84. %   either.  You must define both TEMPFIL1 AND TEMPFIL2.
  85. %
  86. Tempfil1   e:\max\tmp$$
  87. Tempfil2    e:\max\tmp$$$
  88. %
  89. %
  90. %   LOGFILE is the path + filename of a text file to which Upchek.cmd will
  91. %   write its sysop report.  Since Upchek appends reports to this file
  92. %   rather than overwriting it you could probably use your Maximus log
  93. %   file.  I haven't tried that yet but it should work.
  94. %
  95. %
  96. Logfile e:\max\upldlog.txt
  97. %
  98. %
  99. %   OPTSFILE is the path + filename to a text file that contains parameters
  100. %   (options) read by OS2SCAN when it runs.  Consult the OS2SCAN docs for
  101. %   information on what can and should go into this file.  The parameters
  102. %   in the supplied Scanopts.txt cause OS2SCAN to run with no pauses
  103. %   which is important if you are going to use Upchek.cmd with Maximus.
  104. %
  105. Optsfile e:\max\scanopts.txt
  106. %
  107. %
  108. %   BADPATH is the incomplete path (without a drive letter) to the
  109. %   directory that you want Upchek to move bad uploads to.  For speed,
  110. %   OS/2's MOVE command is used rather than COPY followed by DEL.
  111. %   There is one drawback to MOVE which is that a file cannot be moved from
  112. %   one drive to another.  You can MOVE only to a different directory on
  113. %   the same drive.  This restriction is reflected in MOVE's syntax and
  114. %   therefore in badpath's syntax too.  The path assigned to badpath must
  115. %   not begin with a drive letter because the drive is understood to be the
  116. %   same drive that the bad file is on.  The path must start with a "\" but
  117. %   should not end with a "\" character.
  118. %
  119. Badpath \max\file\baduplds
  120. %
  121. %
  122. %   FULLBADPATH is the complete path to the directory that you want Upcheck
  123. %   to move bad uploads to.  This path must end with a "\" character.  You
  124. %   must create this directory yourself since Upchek will not create it for
  125. %   you.  The keywords BADPATH and FULLBADPATH may seem repetitious but
  126. %   it's required.
  127. %
  128. Fullbadpath   e:\max\file\baduplds\
  129. %
  130. %
  131. %   DOORFILE is the path + filename of the drop file (door file) that
  132. %   Upchek reads.  The default is e:\max\chekdoor.sys. If you want to use a
  133. %   different path + filename for the drop file then you must edit the
  134. %   supplied Cdoor.mec appropriately.  Upchek does not require the drop
  135. %   file when used in local mode, it is required only when Upcheck.cmd is
  136. %   invoked by Maximus.  Non-sysops can leave the following line commented. 
  137. %
  138. Doorfile     e:\max\chekdoor.sys
  139. %
  140. %
  141. %   MAXDIR is usually the pathname to your Max directory, i.e.  the
  142. %   directory in which Maxp.exe resides.  Upchek.cmd sets the current
  143. %   directory to this directory just before it exits.  If you prefer to
  144. %   have Upchek.cmd exit to some other current directory then define
  145. %   Maxdir accordingly.
  146. %
  147. Maxdir     E:\Max
  148. %
  149. %   DISCOURAGE allows you to define aspects of the message callers
  150. %   receive when they upload a restricted file (one with a bad extension). 
  151. %   If DISCOURAGE is True then the caller will receive a message
  152. %   explaining:
  153. %
  154. %       1. which types of files should not be uploaded to your system
  155. %       2. that they have upoaded is one of those types.
  156. %
  157. %   If DISCOURAGE False then callers will receive no message concerning
  158. %   restricted files.  The discourage setting has no effect upon whether or
  159. %   not your system screens files based on file extensions.
  160. %
  161. Discourage   True
  162. % Discourage   False
  163. %
  164. %
  165. %   RESTRICTED is a list of restricted file extensions.  The list is a
  166. %   string of extensions seperated by commas as in the list below, no
  167. %   periods, case insensitive.  If you do not want to restrict any file
  168. %   types files then leave this line commented.  Uploads that are
  169. %   restricted will be either deleted or moved depending on the option
  170. %   you select for BADACT.
  171. %
  172. Restricted Gif,voc,Fli,piC
  173. %
  174. %
  175. %   The Badact, Discourage and Restricted options provide flexibility in 
  176. %   what you do with restricted files and what you say to callers when they
  177. %   upload one.  If you do not allow certain file types to be uploaded and
  178. %   want to say so to callers who upload those types then you should use
  179. %   a RESTRICTED list, DISCOURAGE True and either BADACT Move or BADACT
  180. %   Delete.  If you accept all file types but want to be warned when
  181. %   certain types are uploaded then use a RESTRICTED list and DISCOURAGE
  182. %   False.
  183.