On 5 Feb 01 at 22:43, christof Lange wrote:
> Howard, could you please post this batch file? I would very much like
> to experiment with it, too. Stuffkey is available to me.
Here is the full file Chris. Some explanation is needed for
the complexity: I collect outgoing messages in a ``Soup'' packet
created by either yarn or readmail. The packet is called replies.zip
o The program, x_spool.exe comes from the uka_ppp package, and
splits the messages in replies.zip up into separate files, one
message per file.
o The program, glue.exe, comes from the pmpop outgoing
mail transport, by David Harris, for use with the dos Pegasus mailer.
It converts ordinary Unix style message headers into Pegasus style,
``glue'' headers.
o I use Tony Lopez's, epppd as my packet driver, and his chat program
as my dialer. The dialer program is in dialer.bat
o fortune.exe is Bruch Gutherie's enhanced ``for'' command.
I can provide URLs for these programs, if necessary.
Interestingly, I must run fdsmtpop twice for my ISPs form of pop-before-smtp
to work. The author of fdsmtpop kindly added the ability to do pop and
then switch to smtp within one single session. While is is a common feature
of mail clients, my pop-before-smtp will not validate, unless the pop
session was closed, and a separte access from the smtp session.
mem /module EPPPD >h:\epppd
find "EPPPD is using" < h:\epppd >nul
if errorlevel 1 call dialer.bat
if exist h:\epppd del h:\epppd >nul
if exist spool\*.msg choice send spooled Files
if not errorlevel 2 if errorlevel 1 goto spool
c:\batutils\test -s replies.zip
if not errorlevel 1 quit No replies.zip file or it is zero length
pkunzip replies.zip
x_spool /sr
fortune.exe /In (spool\*.out) /-prompt /run /-echo /do glue.exe %%A $$ rename %%A
%%R.msg >nul
if not exist spool\*.msg quit no files were spooled
:spool
if exist log del log
set FDSMTPOPLOG=\qmd\outbox\log
Loadhigh /L:3 c:\batutils\stuffkey + P0,1,5,"LAST" 3 /B:10 > nul
fdsmtpop pop3 -l -d %MYIP% +c:\qmd\outbox\fdsmtpop.cfg
c:\batutils\stuffkey /R > nul
fdsmtpop smtp -d %MYIP% +c:\qmd\outbox\fdsmtpop.cfg
if errorlevel 1 quit Error processing files
if exist spool\*.msg attrib -R -H *.msg
if exist spool\*.msg quit files not sent
choice Delete replies.zip
if not errorlevel 2 if errorlevel 1 del c:\qmd\outbox\replies.zip
set FDSMTPOPLOG=
------------------------------
Howard Schwartz
-------------------------------
theo "at" ncal.verio.com