On Sat, 29 Jul 2000 21:41:22 -0900 (PDT), Howard wrote:
> So I wonder: How do I use insight.exe as a standalone
> program to mail one or several messages to my smtp server
> for delivery? It appears mail to-be-sent (tbs) are saved
> as one-file-per-message with standard mail headers (To:
> From: etc.).
In my case, the SMTP server requires POP3 authentication, so
that would be *both* receiving and sending <g>.
I'm using the following batch file:
X-- Cut Here --X-- Begin GETMAIL.BAT --X-- Cut Here --X
@echo off
c:
cd \arachne
echo Dialing...
echo ---- Hit Esc to abort ----
miniterm.exe
if errorlevel 1 goto xnolink
echo.
echo Starting PPP negotiation...
echo ---- Hit Ctrl-C to abort ----
rem ### Replace "pppd" below with "epppd" as needed
lh pppd.exe > ppp.log
if errorlevel 1 goto xnoppp
goto online
:xnolink
echo.
echo Modem link failed
goto nolink
:xnoppp
echo PPP link failed
goto noppp
:online
echo.
echo Launch Arachne to get mail...
copy arachne.cfg temp.acf
copy online.acf arachne.cfg
call arachne pop3://:110/
copy temp.acf arachne.cfg
:noppp
echo.
echo Terminating packet driver...
echo ---- Please wait -----
termin 0x60
del ppp.log
:nolink
echo.
echo Assure modem hangup...
echo ---- Please wait ----
rem ### Replace the "2" below with your modem's com port
comtool 2 ^b0 ^h ATM1H1 ^cr ^t5 ATH ^cr^
echo.
X-- Cut Here --X-- End GETMAIL.BAT --X-- Cut Here --X
The file ONLINE.ACF is just the same as ARACHNE.CFG, except
for the following:
[profile]
Connection READY
[misc]
AfterPOP3 smtp://:25/
AfterSMTP arachne:exit
Please note that if you pay your telco/ISP by minute, the
above method would only viable unattended if you are a
registered user. It still work just fine with the non-
commercial (shareware) version, but you'd better be ready to
hit any key when Arachne exiting to DOS, otherwise she will
waiting there forever while still online! ;-)
There might be a work around, though (I never tried this
myself). You'll need an ASF file containing just the
following:
pop3://:110/
smtp://:25/
arachne:hangup
arachne:exit
Like ACF files, this is just an ordinary text file. You
could save it as i.e. GETMAIL.ASF in your Arachne folder.
In the GETMAIL.BAT file above, replace the line:
call arachne pop3://:110/
with:
call arachne file:getmail.asf
If "arachne:hangup" works properly, your modem link would be
terminated automagically. But still.. you have to hit a key
manually to exit Arachne. At least until you get yourself
an Arachne registration key... ;-)
--Eko
Older PC and DOS Internet Forum
http://escribe.com/computing/opdif