home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 June / SIMTEL_0692.cdr / msdos / opus / glast201.arc / GETLAST.DOC next >
Encoding:
Text File  |  1989-12-14  |  4.6 KB  |  131 lines

  1. GetLast - a pre-processor for echomail util's by C.L.Browne
  2. Version 2.01 Rev F. Compiled Sunday, 27-August-1989 at 09:48:08.80
  3.  
  4. written by Christopher L. Browne
  5. FidoNet 1:141/735
  6. Data (203)790-6612
  7.  
  8.     The contents of the distribution archive are the sole and unique
  9.     property of C.L.Browne. They are being offered to the public
  10.     domain and shall remain that way until somebody decides to abuse
  11.     the priveleges stated by the phrase 'PUBLIC DOMAIN'. If you have
  12.     any ideas or problems with GetLast, please contact C.L.Browne at
  13.     the above address or phone number. If your suggestion's merit a
  14.     new release, it shall be done in whatever time I can and you will
  15.     be given kudos for your idea. Please state the version and rev
  16.     number along with the compile date and time of your copy of
  17.     GetLast
  18.  
  19. ==============================================================================
  20.  
  21. GetLast is used in your batch files after Opus locally or remote, or any
  22. other external mail editor used locally. It will determine the presence
  23. of new mail <echo or net> and will exit with unique errorlevels so your
  24. batch file can process the new mail accordingly. Here is a sample...
  25.  
  26. :binkley
  27.     bnu -C
  28.     bt share unattended
  29.         ..
  30.         if errorlevel 210 goto mailtoss
  31.         if errorlevel 20 goto export
  32.         ..
  33.     goto start
  34. ..
  35. :export
  36.     getlast -eg:\areas.bbs -lg:\echotoss.log -nd:\binkv210\netmail\
  37.         if errorlevel 3 goto mailscan
  38.         if errorlevel 2 goto mailscan
  39.         if errorlevel 1 goto mailpack
  40.     goto start
  41. :mailtoss
  42.     qm toss scan pack -cg:\qm.cfg -ag:\areas.bbs
  43.     goto start
  44. :mailscan
  45.     qm scan pack -cg:\qm.cfg -ag:\areas.bbs -fg:\echotoss.log
  46.     goto start
  47. :mailpack
  48.     qm pack -cg:\qm.cfg
  49.     goto start
  50. :sysop
  51.     cd\opus
  52.     opus theweb -k
  53.         ..
  54.         if errorlevel 12 goto OpusNetPack
  55.         if errorlevel 11 goto OpusExport
  56.         ..
  57. :OpusNetPack
  58.     cd\binkv210
  59.     goto mailpack
  60. :OpusExport
  61.     cd\binkv210
  62.     getlast -eg:\areas.bbs -lg:\echotoss.log
  63.     noorigin /Fg:\echotoss.log /Cconfig.dog /T0
  64.     goto mailscan
  65.  
  66. If you study the loops above, you'll see that QMail and NoOrigin are
  67. always called based on the errorlevel that GetLast provides. From the
  68. Binkley loop, a manual scan and export is called with the F2 key.
  69. GetLast reads the file g:\areas.bbs <-e> and writes areas with new mail
  70. to g:\echotoss.log <-l>. It is also being told to scan the netmail
  71. directory d:\binkv210\netmail\ <-n>. If it finds only echomail, it
  72. causes the batch file to jump to the mailscan loop where Qmail then uses
  73. the file called g:\echotoss.log to SCAN those areas listed and process
  74. any new mail. If it finds only netmail, the batch file then jumps to the
  75. Qmail PACK loop to process any new netmail. There is also an errorlevel
  76. that says 'GetLast found BOTH echo and netmail'. I haven't found an
  77. unique use for it yet but it is there.
  78.  
  79. As for running GetLast, if you want to have it scan echomail, you MUST
  80. have both the -e and the -l command line options specified. Netmail
  81. scanning requires only the -N command...
  82.  
  83.     -E : tells GetLast what file contains the list of areas to be
  84.          scanned <AREAS.BBS>.
  85.  
  86.     -L : tells GetLast where to write the log of areas that contain new
  87.          mail.
  88.  
  89.     -N : tells GetLast where your netmail directory is. You do not have
  90.          to add the trailing '\'.
  91.  
  92. The errorlevels provided are...
  93.  
  94.     99 : Command line error!
  95.     98 : Major error in processing, please check setup.
  96.      3 : Echomail and Netmail found.
  97.      2 : Only Echomail found.
  98.      1 : Only Netmail found.
  99.      0 : No mail found.
  100.  
  101. The conditions that could cause error 99 are...
  102.  
  103.     Error in writing to log file _____.
  104.     Error in reading area file _____.
  105.     Area file _____ is too large! <more than 255 areas>
  106.  
  107. Conditions that cause error messages to occur but are not considered
  108. FATAL...
  109.  
  110.     Error in directory _____.
  111.     No messages in area ______.
  112.     Message #1 missing, scanning area _____.
  113.  
  114. The file used as AREAS.BBS must follow the format dictated by Qmail...
  115.  
  116. ┌ Must be Column #1!
  117. [directory]  [NAME]  [NODE(s)]
  118.            │       │
  119.            └───────└ can be either spaces or tabs.
  120.  
  121. ...the line in the file will not be read if it is a passthru directory
  122. [#dir] or if the drive char is NOT specified!
  123.  
  124. ==============================================================================
  125.  
  126. To get the latest of GetLast at any time, FREQ the magic filename
  127. GETLAST from 1:141/735. For the latest beta version, FREQ magic file
  128. BETAGETLAST. Please contact Chris Browne for a password if you desire
  129. the beta version.
  130.