home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Education Master 1994 (4th Edition)
/
EDUCATIONS_MASTER_4TH_EDITION.bin
/
files
/
commadio
/
sport1
/
sport154.exe
/
WAITS.EXE
/
POSTMAIL.BAT
< prev
next >
Wrap
DOS Batch File
|
1992-10-29
|
3KB
|
67 lines
echo off
cls
echo PostMail
echo (c)Copyright; 1988, 1989 Augustine Associates
echo
echo These routines are used to process incoming mail or to create and use
echo special processing which may be required after the receipt of incoming
echo SPORT mail. This batch file must exist in the SPORT default directory.
echo
rem * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
rem *
rem * If you are NOT using the EXITAFTER option in your set-up,
rem * POSTMAIL.BAT is run, if present, after every outgoing and incoming
rem * mail session. The default installation USES the EXITAFTER option,
rem * in which case you may write in your postmail processing commands in the
rem * appropriate place in the RUNSPORT.BAT file
rem *
rem * You may edit this file and delete the word "rem * " to put POSTMAIL.BAT
rem * into operation.
rem *
rem * This batch file is used to process mail after it is received by
rem * SPORT. It is only necessary if you have some special processing
rem * which needs to be done. You can move certain files whenever they
rem * arrive in your incoming area and move them to certain directories
rem * and do processing which does not require human intervention,
rem * and for which there is enough memory.
rem *
rem * Below is a sample of one type of Postmail Processing which will
rem * add an address line to your Phone Index List from via an incoming
rem * file.
rem *
rem * This batch file assume you are using the standard SPORT directory
rem * configuration which is :
rem *
rem * The SPORT default directory ................. SPORT
rem * The default inbound directory ............... SPORT\INCOMING
rem *
rem * If you are using different directory names you will need to replace them
rem * in the lines which follow.
rem *
rem * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
rem * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
rem *
rem * Be sure we are in the correct directory.
rem *
rem * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
cd \sport
rem * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
rem *
rem * Check for an inbound text file to be appended to your IDX file. If it
rem * exists with the proper name, append contents to the IDX file.
rem * The name of the inbound text file is the single security check on this
rem * procedure. Therefore it should be known only to an authorized user.
rem * Please change this name to something only you know!
rem *
rem * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
echo Checking for SFLASH.IDX update...
if exist \sport\incoming changeit.txt goto CHANGEIDX
goto FINIS
:CHANGEIDX
echo Updating SFLASH.IDX...
type \sport\incoming changeit.txt >> \sport\sport.raw
type \sport\incoming changeit.txt >> \sport\sflash.idx
del \sport\incoming changeit.txt
:FINIS
echo