home *** CD-ROM | disk | FTP | other *** search
- GetLast - a pre-processor for echomail util's by C.L.Browne
- Version 2.01 Rev F. Compiled Sunday, 27-August-1989 at 09:48:08.80
-
- written by Christopher L. Browne
- FidoNet 1:141/735
- Data (203)790-6612
-
- The contents of the distribution archive are the sole and unique
- property of C.L.Browne. They are being offered to the public
- domain and shall remain that way until somebody decides to abuse
- the priveleges stated by the phrase 'PUBLIC DOMAIN'. If you have
- any ideas or problems with GetLast, please contact C.L.Browne at
- the above address or phone number. If your suggestion's merit a
- new release, it shall be done in whatever time I can and you will
- be given kudos for your idea. Please state the version and rev
- number along with the compile date and time of your copy of
- GetLast
-
- ==============================================================================
-
- GetLast is used in your batch files after Opus locally or remote, or any
- other external mail editor used locally. It will determine the presence
- of new mail <echo or net> and will exit with unique errorlevels so your
- batch file can process the new mail accordingly. Here is a sample...
-
- :binkley
- bnu -C
- bt share unattended
- ..
- if errorlevel 210 goto mailtoss
- if errorlevel 20 goto export
- ..
- goto start
- ..
- :export
- getlast -eg:\areas.bbs -lg:\echotoss.log -nd:\binkv210\netmail\
- if errorlevel 3 goto mailscan
- if errorlevel 2 goto mailscan
- if errorlevel 1 goto mailpack
- goto start
- :mailtoss
- qm toss scan pack -cg:\qm.cfg -ag:\areas.bbs
- goto start
- :mailscan
- qm scan pack -cg:\qm.cfg -ag:\areas.bbs -fg:\echotoss.log
- goto start
- :mailpack
- qm pack -cg:\qm.cfg
- goto start
- :sysop
- cd\opus
- opus theweb -k
- ..
- if errorlevel 12 goto OpusNetPack
- if errorlevel 11 goto OpusExport
- ..
- :OpusNetPack
- cd\binkv210
- goto mailpack
- :OpusExport
- cd\binkv210
- getlast -eg:\areas.bbs -lg:\echotoss.log
- noorigin /Fg:\echotoss.log /Cconfig.dog /T0
- goto mailscan
-
- If you study the loops above, you'll see that QMail and NoOrigin are
- always called based on the errorlevel that GetLast provides. From the
- Binkley loop, a manual scan and export is called with the F2 key.
- GetLast reads the file g:\areas.bbs <-e> and writes areas with new mail
- to g:\echotoss.log <-l>. It is also being told to scan the netmail
- directory d:\binkv210\netmail\ <-n>. If it finds only echomail, it
- causes the batch file to jump to the mailscan loop where Qmail then uses
- the file called g:\echotoss.log to SCAN those areas listed and process
- any new mail. If it finds only netmail, the batch file then jumps to the
- Qmail PACK loop to process any new netmail. There is also an errorlevel
- that says 'GetLast found BOTH echo and netmail'. I haven't found an
- unique use for it yet but it is there.
-
- As for running GetLast, if you want to have it scan echomail, you MUST
- have both the -e and the -l command line options specified. Netmail
- scanning requires only the -N command...
-
- -E : tells GetLast what file contains the list of areas to be
- scanned <AREAS.BBS>.
-
- -L : tells GetLast where to write the log of areas that contain new
- mail.
-
- -N : tells GetLast where your netmail directory is. You do not have
- to add the trailing '\'.
-
- The errorlevels provided are...
-
- 99 : Command line error!
- 98 : Major error in processing, please check setup.
- 3 : Echomail and Netmail found.
- 2 : Only Echomail found.
- 1 : Only Netmail found.
- 0 : No mail found.
-
- The conditions that could cause error 99 are...
-
- Error in writing to log file _____.
- Error in reading area file _____.
- Area file _____ is too large! <more than 255 areas>
-
- Conditions that cause error messages to occur but are not considered
- FATAL...
-
- Error in directory _____.
- No messages in area ______.
- Message #1 missing, scanning area _____.
-
- The file used as AREAS.BBS must follow the format dictated by Qmail...
-
- ┌ Must be Column #1!
- │
- [directory] [NAME] [NODE(s)]
- │ │
- └───────└ can be either spaces or tabs.
-
- ...the line in the file will not be read if it is a passthru directory
- [#dir] or if the drive char is NOT specified!
-
- ==============================================================================
-
- To get the latest of GetLast at any time, FREQ the magic filename
- GETLAST from 1:141/735. For the latest beta version, FREQ magic file
- BETAGETLAST. Please contact Chris Browne for a password if you desire
- the beta version.
-