Re: SOUP for Win95

From: Frank G. Pitt (frankie@mundens.gen.nz)
Date: Tue, 02 Jun 1998 00:11:00 +1200

In article <hEbc1U86l4Za092yn@login.dknet.dk >,
cltrar@login.dknet.dk (Claus Thoegersen) wrote:
>
>I have downloaded the Win95 port of Soup, but it seems to be a bit of
>a job to get it working. Have anybody made batch files to automate
>receive and sending of mail. If so I would like to see a copy of them.

You need more than batch files.

You need rasdial95.exe or some other automated command line RAS dialer

Otherwise, here's my batchfile (running under 4DOS) :
(note. I'm running multiple users on a network, which is why
I have all the "semaphores" )

@echo off
pushd

if not exist g:\bat\semaphor\expire.on goto CHECKIMPORT
echo Expire in progress
echo cannot carry out callout, ending run...
goto END

:CHECKIMPORT
if not exist g:\bat\semaphor\import.on goto DORUN

if not exist g:\bat\semaphor\reader.on goto PREIMPORT
echo Outstanding import AND reader online
echo cannot carry out callout, ending run...
goto END

:PREIMPORT
echo Outstanding import, importing....
call g:\bat\import.bat

:DORUN
rename g:\bat\semaphor\callout.off g:\bat\semaphor\callout.on >> NUL
set NNTPSERVER=news.paradise.net.nz
echo Connecting >> g:\bat\log\paradise.log
timer ON /1 >> g:\bat\log\paradise.log
timer ON /2 >> g:\bat\log\paradise.log
g:\bin\rasdial95 "Paradise" USER PASSWORD
echo Connected >> g:\bat\log\paradise.log
timer /2 >> g:\bat\log\paradise.log
if ERRORLEVEL=0 goto CHECKUPLOAD
echo Failed to connect
rename g:\bat\semaphor\callout.on g:\bat\semaphor\callout.off >> NUL
goto END

:CHECKUPLOAD
cdd g:\usr\spool\pppnews

if exist upload.zip goto UPLOAD
echo No messages to upload,
goto DOWNLOAD

:UPLOAD
echo Uploading ...
g:\bin\pkunzip -o upload.zip
g:\bin\souper95\souper95.exe -s -k 0 -h g:\usr\spool\pppnews -N g:\usr\spool\pppnews\paradiserc mailto.paradise.net.nz USER PASSWORD
move upload.zip ..\

:DOWNLOAD
echo Downloading ...
g:\bin\souper95\souper95.exe %1% -k 0 -h g:\usr\spool\pppnews -N g:\usr\spool\pppnews\paradiserc mailfrom.paradise.net.nz USER PASSWORD
set NNTPSERVER=

g:\bin\rasdial95 /DISCONNECT "Paradise"
echo Disconnected >> g:\bat\log\paradise.log
timer /1 >> g:\bat\log\paradise.log
rename g:\bat\semaphor\import.off g:\bat\semaphor\import.on >> NUL
rename g:\bat\semaphor\callout.on g:\bat\semaphor\callout.off >> NUL

REM run import to move news into Yarn
call g:\bat\import.bat

:END
popd

-- 
Frankie

Frank G. Pitt | When in doubt, wash | fun: frankie@mundens.gen.nz Wellington | (Orlando) | frankie@paradise.net.nz New Zealand | | profit: fpitt@nz1.ibm.com