home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / m / mwch24.zip / MWATCH.TXT < prev    next >
Text File  |  1993-01-11  |  21KB  |  523 lines

  1.  
  2.                           MailWatch
  3.                          version 2.4
  4.                         USER'S MANUAL
  5.                         by Jon Glazer
  6.              {glazer@ohstpy.mps.ohio-state.edu}
  7.                    Copyright (c) 1992,1993
  8.  
  9. Introduction:
  10.  
  11. MailWatch is an email management program designed to give
  12. comprehensive reports about your email system and perform
  13. some management functions to help reduce the amount of space
  14. it utilizes.  MailWatch has the ability to actually re-send
  15. unread mail to an alternative address to ensure that old
  16. mail does not continually build up on your system.
  17. MailWatch is designed to work with Pegasus Mail by David
  18. Harris and Charon by Brad Clements.  Both of these are
  19. readily available off of most network sourced BBS systems
  20. and Compuserve.  Future versions of MailWatch will also
  21. support MHS and possibly other email packages.
  22.  
  23. This document will assume that the reader has a good
  24. understanding of Pegasus Mail and Charon and at least some
  25. rudimentary knowledge of basic Novell functions.
  26.  
  27. History:
  28.                               
  29. .92b Final release of test version.
  30. 2.0  First release of rewritten shareware version.
  31. 2.1  Major bug fix release
  32.      - Fixed numerous bugs regarding forwarding mail.
  33.      - Fixed directory search algorythm to eliminate Novell
  34. errors.
  35.      - Added support for return-to-sender and corrected
  36. forwarding  algorythm to work as-stated (see      RetunAdd).
  37.      - Modified initial search to read from bindary rather
  38. than SYS:MAIL.  Names are now read      directly, converted
  39. to their HEX IDs then used to search for mail.  Formerly,
  40. all directories under    SYS:MAIL were searched, valid or
  41. not.
  42.      - Added "Z" report for primitive dump of user
  43. preference settings.
  44.      - Corrected a variety of errors regarding incorrect
  45. mail counts and inaccurate reports.
  46.      - Added a total at the bottom of each numeric column.
  47.      - Added banner info for email in MAILQUEUE when sending
  48. mail via Charon (real important    huh?).
  49. 2.2  - Added DEBUG option in [SYSTEM] area of MWATCH.INI
  50.      - Added MAILQUEUE option in [SYSTEM] area of MWATCH.INI
  51.      - Added additional error checking on for output files.
  52.      - Added support for group scanning in NAME variable.
  53.      - Corrected my mailing address on the coverpage of this
  54.      manual.
  55.      - DEFAULT profile specified in [SYSTEM] is now
  56.      correctly checked for.
  57.      - Intelligent error messages added for profile names
  58.      (given or missing)
  59.      - GLOBAL and SYSTEM profile names are now known as
  60.      reserved and cannot be specified.
  61.      - Added Using Mailwatch section in this manual.
  62. 2.3  - Corrected mail scan for moved mailboxes.
  63.      - Beautified registration screen.
  64.      - Added additional profile error checking w/ messages.
  65.      - Added multi-level DEBUG mode.
  66.      - Corrected possible cause of "Error 105".
  67.      - Added profile variable types to documentation.
  68. 2.4  - Corrected yet another bug dealing with name
  69.      resolution.
  70.      - Fixed additional Charron support
  71.      - Added parameter override support for command line
  72.      (see Using Mailwatch)
  73.      - Clarified more clearly in documentation what the term
  74.      PROFILE means.
  75.  
  76.  
  77. Installation:
  78.  
  79. Place the MailWatch distribution files (*.EXE and *.INI at
  80. least) in any directory in your path.  It might be
  81. convenient to place the in the same directory as PMAIL.
  82.  
  83. MWATCH.INI contains many user-settable variables that will
  84. define how MailWatch performs its various tasks.  MailWatch
  85. cannot operate properly without finding MWATCH.INI in the
  86. path or current directory.
  87.  
  88. The user who runs MailWatch should have full access to the
  89. mail root directory.  This is necessary to be able to
  90. accurately scan all of the mail subdirectories and
  91. delete/forward mail as needed.
  92.  
  93. Using MailWatch
  94.  
  95. Running MailWatch from the command line is very simple.
  96. The syntax is:
  97.  
  98. MWATCH2 profilename [param1 param2 param3...]
  99.  
  100. Profilename is the name of a valid profile you set up in
  101. MWATCH.INI with all the settings you plan to use.  If you do
  102. not specify a profile name then MailWatch will use the name
  103. found in the [system] section of MWATCH.INI under Default=.
  104. If this is also missing than MailWatch will return an error.
  105.  
  106. Please note that you may not use the names GLOBAL or SYSTEM
  107. in this manner.  These are reserved names that MailWatch
  108. uses for system variables.  See the section entitled
  109. MWATCH.INI for more information.
  110.  
  111. Param1..n are overriding parameters for MailWatch to use
  112. instead of those found in MWATCH.INI.  The order of
  113. preference here is.
  114.      - use command line parameter (if found).
  115.      - use parameter in specified profile (if found).
  116.      - use parameter in [global] profile (if found).
  117.      - report error if none of above find parameter and it
  118. is required.
  119.  
  120. Parameters specified on the command line MUST BE IN THE SAME
  121. SYNTAX FOUND IN MWATCH.INI.  That is, it uses the form
  122. KEYNAME=VALUE.  For example, to specify the scanning of only
  123. those names beginning with "tom", you might run
  124.  
  125. MWATCH2 AGED NAME=TOM*
  126.  
  127. The profile name must be parameter #1 in this case.  All
  128. other parameters are assumed to be variable definitions.  No
  129. spaces are allowed in this type of declaration.  Entering
  130. something like
  131.  
  132. MWATCH2 AGED NAME = TOM*
  133.  
  134. would tell MailWatch to use the parameters found in
  135. MWATCH.INI because spaces were found on either side of the
  136. equal sign.
  137.  
  138. MWATCH2 NAME=TOM*
  139.  
  140. would not work either since, in this case, MailWatch would
  141. try to use the information found in the profile [name=tom*]
  142. which probably does not exist in MWATCH.INI.
  143.  
  144.  
  145. *Note*  Moved mailboxes may result in inaccurate counts.  If
  146. a user moves his/her mailbox to a non-local drive (a drive
  147. letter less than "F"), the folders cannot be accessed and
  148. will not be processed.  A indication of "N/A" in any of the
  149. folder related columns will signify this.
  150.  
  151. MWATCH.INI
  152.  
  153. MWATCH.INI conforms to the standard section/keyword/value
  154. format that is found in many other applications such as
  155. Windows.  The .INI format is exceedingly easy to understand
  156. and manipulate and should make the more advance MailWatch
  157. features more easily understandable.
  158.  
  159. MWATCH.INI is simply a text file that contains variables
  160. that the user defines to tell MailWatch how to run.  The
  161. file can be edited by any text editor or word processor that
  162. can create standard DOS text files (those you can TYPE
  163. without seeing garbage).
  164.  
  165. The file is segmented into sections known as PROFILES.  Each
  166. section (or profile) is denoted by a single line that
  167. contains the name of the profile.  The name is enclosed in
  168. brackets and all variable definitions between this name and
  169. the next (or the end of the file) pertain the this profile.
  170. For example:
  171.  
  172. [section 1]
  173. a=1
  174. b=2
  175. c=3
  176. [section 2]
  177. d=4
  178. e=5
  179. f=6
  180.  
  181. In this example, two profiles are defined "section 1" and
  182. "section 2".  They are indicated by the enclosing brackets.
  183. The variables "a", "b", and "c" are defined for profile
  184. "section 1", and "d", "e", and "f" are for "section 2".
  185. Variables can be defined in defined in both profiles in any
  186. order desired.  Only the profile referenced is actually
  187. looked at.  Variables beginning with a ";" are assumed to be
  188. comments, therefore using ";a=1" in [section 1] above, will
  189. NOT set variable "a" to the value "1".
  190.  
  191. MailWatch only cares about three different profiles found in
  192. MWATCH.INI.  The [system] profile, [global] profile, and the
  193. profile name specified on the command line (perhaps [aged]).
  194. The rest of the file is essentially ignored.
  195.  
  196.  
  197. [system]
  198.  
  199. Variables under this section define various system settings
  200. needed to tell MailWatch about your particular network and
  201. email system.
  202.      
  203. MailDir= (S) This variable defines the root mail directory
  204.      of the email system.  For most Novell networks running
  205.      Pegasus Mail this is SYS:MAIL, however the volume name
  206.      "SYS" may change depending upon your installation.  If
  207.      this variable is not defined, SYS:MAIL is assumed.
  208.  
  209. LogFile= (S) Enter the name of the log file you wish to use
  210.      to maintain a log of the activities MailWatch performs.
  211.      If you do not define a log file name, no log will be
  212.      kept.
  213.  
  214. LogSize= (I) Log files can build in size forever until your
  215.      disk is full unless you periodically delete them or set
  216.      a limit.  LogSize defines the maximum number of bytes
  217.      the log file can get before logging is suspended.  By
  218.      default, a size of 1024000 (1 meg) is assumed.
  219.  
  220. Default= (S) You can define a default profile to use if you
  221.      do not specify one on the command line by entering a
  222.      valid profile name in this  variable.
  223.  
  224. Debug= (I) Three debugging levels are available to help
  225.      resolve and report problems with MailWatch.  Debug
  226.      level zero turns off debugging.  Level one shows
  227.      minimal activity.  Level two displays all procedures
  228.      utilized durring process.  Use DEBUG=0,1, or 2.
  229.  
  230. MailQueue= (S) Enter the name of the Charon mail quue you
  231.      setup when installing Charon and Pegasus Mail.  If not
  232.      specified then this name is MAILQUEUE.
  233.  
  234. Registration= (S) MailWatch is not a free utility.  By
  235.      registering the product (paying for it) you will
  236.      receive a passcode that will enable the restricted
  237.      features of MailWatch.  Enter the passcode here to tell
  238.      MailWatch that it is now registered.  See the section
  239.      entitled REGISTRATION for more information.
  240.  
  241. [global]
  242.  
  243. Sections other than [system] define parameters to use when
  244. running MailWatch.  MailWatch will search MWATCH.INI for
  245. each variable, first in the given profile section then, if
  246. not found, it will look in the [global] section for these
  247. variables before using defaults or erroring.  The following
  248. variables are valid profile settings that may or may not be
  249. appropriate for the [global] section.  This is where some
  250. logic in the design of MWATCH.INI will be needed.
  251.  
  252. In the following list, expected variable types are displayed
  253. as either (S), (I) or (B).
  254.      (S)= Any set of characters or numerals or symbols.
  255.      (I)= Any set of numerals representing an integer value.
  256.      (B)= Any boolean value.  The following sets are
  257.       equivelant (yes/no), (true,false), (on/off), (y/n),
  258.       (t/f).
  259.  
  260. NewMail= (S) New, unread mail, is stored in separate files
  261.      in a user's mail directory with the extension .CNM (or
  262.      at least it is for Pegasus Mail delivered by Charon or
  263.      Pegasus).  This variable allows you to define what
  264.      extension to scan for new mail.  Usually this would
  265.      simply be *.CNM (and, in fact, is the default) but it
  266.      is provided here in case you find some other use for
  267.      MailWatch I cannot conceive of (or perhaps some other
  268.      email package can use this utility?).
  269.  
  270. Age= (I) MailWatch performs functions and reports on aged
  271.      mail.  This is mail that is older than a defined number
  272.      of days (usually unread mail).  Enter a number here
  273.      that defines what is to be considered aged mail.  There
  274.      is usually no reason to place this in the [global]
  275.      section, nor is there a default value.  Age must be
  276.      specified explicitly for MailWatch to function.
  277.  
  278. Name= (S) You may have MailWatch perform functions on the
  279.      entire mail system, or you can have it work on only
  280.      selected users.  Enter the name of the user you wish to
  281.      scan in this variable.  You may use wildcards if you
  282.      wish to scan groups of names (such as all users with
  283.      "J" as a first letter Name=J*).
  284.  
  285.      You can scan a valid Novell group name by preceding the
  286.      name with a "#".  For example,  NAME=#ACCOUNTING would
  287.      only scan members of the accounting group.  If you wish
  288.      to scan members of groups beggining with "ACC" then use
  289.      NAME=#ACC*.
  290.  
  291. ReturnAdd= (S) Aged mail can be forwarded to another user or
  292.      to the same user on another host or return the message
  293.      to the sender..  Reasons for doing this are: 1) if a
  294.      user has old, unread mail, send the mail to the email
  295.      administrator to sort out why the mail has not been
  296.      read (notify the user).  2) if the user usually works
  297.      from a Unix host (or some other foreign host) send the
  298.      mail there.  The user may not have enabled AutoForward.
  299.      The mail will be rather old when he/she receives it and
  300.      hopefully he/she will correct the entry in AutoForward
  301.      to avoid this problem in the future.
  302.  
  303.      To have the mail sent to a different user, enter the
  304.      full address of the user to send old mail to.  If you
  305.      wish to simply have the mail sent to the same user on
  306.      another host, enter the mail path w/o the username and
  307.      the addressee will be added by MailWatch.  Ex..
  308.      ReturnAdd=@novell.com will send aged mail to the
  309.      {addressee}@novell.com.
  310.  
  311.      If no value is given for ReturnAdd then the aged mail
  312.      will be returned to sender with the appropriate message
  313.      in the subject.
  314.  
  315. OutputName= (S) When generating reports, MailWatch can send
  316.      the report to a file.  Enter the name of the file you
  317.      wish to use for your report output.  No default is
  318.      provided.
  319.  
  320. LineDraw= (B)  Reports can be generated using either the PC
  321.      linedraw characters or dashes and plusses.  Some
  322.      printers cannot print the linedraw characters.  The
  323.      default is no.
  324.  
  325. PageLength= (I) Enter the length of a single page of output
  326.      for reports.  By default this is 60 lines.
  327.  
  328. DeleteAged= (B) When aged mail is encountered, should it be
  329.      deleted after processing (i.e., after the report is
  330.      generated or after it is forwarded).  If mail is
  331.      forwarded and not deleted, then the next time MailWatch
  332.      is run a duplicate mail message will be forwarded until
  333.      the mail is deleted.
  334.  
  335. ForwardAged= (B)  Should aged, unread mail be forwarded to
  336.      ReturnAdd?
  337.  
  338. AgedGroup= (S) MailWatch has the ability to maintain a
  339.      Novell group of users who have unread, aged mail.  By
  340.      placing usernames in this group, you can give notice to
  341.      these users that their mail is being ignored and that
  342.      it may eventually be deleted.  This can be easily done
  343.      in the login script (see Novell documentation).  By
  344.      running consecutive scans, you can provide different
  345.      messages to users such as "You have mail older than 10
  346.      days waiting". "You have mail older than 20 days
  347.      waiting",  "Your unread mail is being deleted" etc....
  348.      Provide AgedGroup with the name of the group to
  349.      maintain the names in.  This group should already be
  350.      created.  Each time MailWatch is run, it is cleared of
  351.      names and updated with only those that have been
  352.      processed.
  353.  
  354. ExcludeGroup= (S) You can provide a list of users to exclude
  355.      from MailWatch processing by giving the name of an
  356.      existing Novell group here.  Users found in that group
  357.      will be ignored by MailWatch.
  358.  
  359. Quiet= (I) This tells MailWatch how much status to display
  360.      when executing.  A quiet level of 0 will display
  361.      everything (not quiet).  This can result in a rather
  362.      messy display but it does allow for redirection of
  363.      output in the event you wish to have information
  364.      generated by reports piped into another application.
  365.      Quiet level 1 (sort of quiet) will generate a series of
  366.      colored dots that show status.  The various colors
  367.      signify different activities and are only provided to
  368.      make the display interesting.  Quiet level 2 (tight
  369.      lipped) does not display anything at all unless an
  370.      error is encountered.
  371.  
  372. RepOrder= (S) This is a rather complex variable.  Basically
  373.      it provides MailWatch with the information you wish to
  374.      see on a report.  Reports are usually made of columns
  375.      of information.  Some of the information may not be
  376.      wanted or may need to be in a particular order.  Each
  377.      column of information has an associated letter.  Enter
  378.      in RepOrder the column order you wish to see in the
  379.      reports.  This is simply a set of letters that turn on
  380.      report columns and tell MailWatch to print them in a
  381.      particular order.  See the REPORTS section for more
  382.      information.
  383.  
  384. [Other Profiles]
  385.  
  386. Additional should be defined with the above variable to
  387. describe various MailWatch functions.  Examples might be
  388. sections to simply delete old mail, forward and delete old
  389. mail, generate specific reports, or any combination of
  390. these.  You would run MailWatch with the name of the profile
  391. on the command line to have it use those values when
  392. running.   If you do not provide a profile name, the one
  393. found in Default= in the [system] section will be used , if
  394. available.
  395.  
  396. Reports:
  397.  
  398. MailWatch has a rather sophisticated reporting system.  It
  399. provides information as desired and limits its processing to
  400. only those areas required to acquire this information.  In
  401. this way, MailWatch processing times may vary depending upon
  402. the type and quantity of information requested.
  403.  
  404. Each report is made up of columns of information.  Each
  405. column item has a corresponding column letter assigned to
  406. it.  When generating reports, the columns are displayed in
  407. the order provided in the RepOrder variable.  If a column is
  408. excluded from this variable, it will not be displayed at
  409. all.
  410.  
  411. The following is a description of each of the available
  412. reporting columns you may include in RepOrder.
  413.  
  414.   General     Pmail      Unread       MHS         Folder
  415. A Userid   C  Total    G Unread    K  MHS      O  Folder
  416.               Email      Total        Total       Total
  417. B User     D  Total    H Unread    L  MHS Size P  Folder
  418.   Name        Aged       Size                     Size
  419.            E  Total    I Unread    M  MHS Aged Q  Folder
  420.               Size       Aged                     Deleted
  421.            F  Total    J Unread    N  MHS      R  Folder
  422.               ASize      ASize        Asize       Mail
  423.                                                S  Folder
  424.                                                   Aged
  425.                                                T  *Folder
  426.                                                   Name
  427. * Requires special consideration (See below).
  428.  
  429. The General columns are general information pertaining to
  430. the email user.
  431.  
  432. Items under Pmail depict information regarding specific
  433. elements of Pegasus Mail mail.  Totals in this category
  434. total both read and unread mail.
  435.  
  436. The Unread category also deals with Pegasus Mail
  437. information.  These are statistics about unread mail found.
  438.  
  439. MHS statistics are not yet available but will be active
  440. using these settings eventually.
  441.  
  442. Folder statistics can be taken if you wish to get that level
  443. of information.  If you specify that the folder name is to
  444. be displayed (not usually useful) than another type of
  445. report will be generated giving sub totals for the folder
  446. information.  This can become rather cluttered and is only
  447. offered as a service for debugging.
  448.  
  449. ASize information depicts aged, unread mail sizes.
  450.  
  451. Example
  452.  
  453. If RepOrder=ABCGOE then the report would be UserId,
  454. UserName, TotalEmail, UnreadTotal, FolderTotal, TotalSize in
  455. that order.
  456.  
  457. An additional report code of "Z" will dump user settings for
  458. Pegasus Mail.  This should probably be used alone in it's
  459. own profile, otherwise a rather cluttered, and unreadable
  460. report will be generated.
  461.  
  462. Example
  463.  
  464. RepOrder=Z
  465.  
  466. Disclaimer:
  467.  
  468. This product is distributed "as-is".  Loss or corruption of
  469. data  or damage to equipment due directly or indirectly to
  470. the use of this product is not the responsibility of the
  471. author who cannot be made liable.  Use this product at your
  472. own risk.
  473.  
  474. Credits:
  475. Pegasus Mail is copyright by David Harris.
  476. Charon is copyright by Brad Clements.
  477. Novell is a trademark of Novell Inc.
  478. Windows is a trademark of Microsoft Inc.
  479.  
  480. Registration:
  481.  
  482. MailWatch is not free.  It has been developed after a
  483. considerable amount of effort and is distributed in the
  484. shareware fashion.  If you decide that MailWatch is useful
  485. for you, please send $39/ server to:
  486.  
  487.           Jon Glazer
  488.           2097 Brittany Road
  489.           Columbus, Oh   43229.
  490.  
  491. Questions and comments can be sent to glazer@ohstpy.mps.ohio-
  492. state.edu.
  493.  
  494. You will receive a passcode that will enable any MailWatch
  495. protected features.  This code will be good for any
  496. maintenance releases of MailWatch in the future.  A
  497. maintenance release is a version whose minor number changes
  498. (i.e. 2.01, 2.02, 2.10 etc..).
  499.  
  500. Please complete and send the following form:
  501.  
  502. Please send me the MailWatch passcode via:
  503.  
  504. [  ] U.S. Mail                address
  505.  
  506.           ________________________________________
  507.  
  508.           ________________________________________
  509.  
  510.           ________________________________________
  511.  
  512.           ________________________________________
  513.  
  514.  
  515. [  ] Internet (email) , my address is:
  516.  
  517.      _______________________________________________
  518.  
  519.  
  520. [  ] Compuserve (email), my id is:
  521.  
  522.      _______________________________________________
  523.