@echo off

Rem TEST1.BAT shows example for "NEWMAIL.CFG method.

:Start
  
Start Fossil

Cd: \Bink

Goto Mail

:Binkley

Cd \Bink
   
Bt
 
Rem Binkley errorlevels here!


:Mail

Rem   This time we're using the NEWMAIL.CFG file to gather the message base
Rem   Names. It's a little slower, but needed if you exceed DOSs command line
Rem   Limit. 

NewMail

Rem Remove the "Rem from the next line if you want to delete the log.
Rem If Exist NewMail.Log  Del NewMail.Log

If ErrorLevel 3 Goto NewMail
If ErrorLevel 1 Goto Err
If ErrorLevel 0 Goto NoMail

:NewMail
 Echo run IP to convert PCBmail to FidoNet Mail....
 Echo run QM to bundle the mail
 Goto Binkley

:Err 
 Echo Error 
 Goto End
 Rem you could goto Binkley and ignore this error but you won't process mail...

:NoMail
 Echo No new mail...
 Goto Binkley

:End
 Echo BBS is down...
