home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / m / mwch23.zip / MWATCH.TXT < prev    next >
Text File  |  1992-12-07  |  18KB  |  446 lines

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