@echo off

Rem "TEST.BAT" shows example for command line method of running NewMail.

:Start
  
Start Fossil

Cd: \Bink

Goto Mail

:Binkley

Cd \Bink
   
Bt
 
Binkley errorlevels here!


:Mail

Rem  If you specify any command line parameters NewMail wont look for a
Rem  NEWMAIL.CFG file and only look for the message areas on the command line.

NewMail C:\Pcb\Msgs\Local C:\Pcb\Msg\Netmail C:\Pcb\Msg\Sysop

Rem remove the Rem from the next line if you want to kill 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...
