home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
echobeta.zip
/
MAILER.BAT
< prev
next >
Wrap
DOS Batch File
|
1995-04-14
|
5KB
|
118 lines
@echo off
rem ***************************************************************************
rem MAILER.BAT file for use with FrontDoor and Synchronet BBS v1c
rem if using with InterMail, change all "FD"s to "IM"s.
rem ***************************************************************************
rem ***********
rem Node Number
rem ***********
set nodenum=1
rem **************
rem SBBS Directory
rem **************
set sbbs=c:\sbbs
rem ***************************************
rem SBBS CTRL Dir - needed for NODE utility
rem ***************************************
set sbbsctrl=%sbbs%\ctrl
rem **************************************************
rem SBBS NODE Dir - needed for ADDFILES utility (tick)
rem **************************************************
set sbbsnode=%sbbs%\node1
:top
rem ***************************************************************************
rem Set Node status to WAITING FOR CALL
rem ***************************************************************************
%sbbs%\exec\node status=0 %nodenum% rerun off %nodenum% event off %nodenum%
rem ***************************************************************************
rem Drive letter where FrontDoor is installed
rem ***************************************************************************
c:
rem ***************************************************************************
rem FrontDoor system directory
rem ***************************************************************************
cd \fd
fd
rem ***************************************************************************
rem These error levels must be set in FDSETUP!
rem ***************************************************************************
if errorlevel 200 goto fax
if errorlevel 100 goto bbs
if errorlevel 50 goto inmail
if errorlevel 25 goto outmail
if errorlevel 10 goto userbreak
if errorlevel 1 goto error
goto end
rem ***************************************************************************
rem FrontDoor received in-bound mail from another system
rem ***************************************************************************
:inmail
echo Importing in-bound mail!!!
rem ***************************************************************************
rem Set node status to NETWORKING
rem ***************************************************************************
%sbbs%\exec\node status=6 %nodenum%
%sbbs%\exec\sbbsecho /esl!
goto top
rem ***************************************************************************
rem Semaphore file (FDEXIT.025) was signaled by the BBS - new out-boud messages
rem ***************************************************************************
:outmail
echo Exporting out-bound mail!!!
rem ***************************************************************************
rem Set node status to NETWORKING
rem ***************************************************************************
%sbbs%\exec\node status=6 %nodenum%
%sbbs%\exec\sbbsecho /nil
rem ***************************************************************************
rem Signal the rescan semaphore so that FD will rescan the netmail folder
rem ***************************************************************************
rem > fdrescan.now
goto top
rem ***************************************************************************
rem Received a call from a user wanting access to the BBS - how dare they!
rem This actually executes EXEBBS.BAT with the proper switches for SBBS
rem You will probably also need to edit EXEBBS.BAT for your configuration
rem ***************************************************************************
:bbs
dobbs
rem ***************************************************************************
rem Received a fax call
rem ***************************************************************************
:fax
cd \zfax
rcvfax 2 /p:1
if errorlevel 0 echo riIncoming FAX Notification! >> \bbs\data\msgs\0001.msg
goto top
rem ***************************************************************************
rem Quit FD
rem ***************************************************************************
:userbreak
echo User Break.
goto end
rem ***************************************************************************
rem FrontDoor error of some kind
rem ***************************************************************************
:error
echo FD ERROR (1-9)
goto end
rem ***************************************************************************
rem End of the batch file, so display a blank line for prettiness
rem ***************************************************************************
:end
rem ***************************************************************************
rem Make node status OFFLINE
rem ***************************************************************************
%sbbs%\exec\node status=5 %nodenum%
echo.