mars-mail/pmail.bat

39 lines
1.3 KiB
Batchfile
Executable File

@echo off
rem This batch file gets called when a dos user wants to run pmail from
rem a menu or command line.
rem It calls marsmail.exe to convert the unix mail file into readable
rem pmail messages.
rem Need linked the unix /var/spool/mail to SYS:/unixmail
rem 1/1000000 chance that user runs marsmail during a mail delivery
rem that might damage the last message coming in... Anybody have any
rem ideas?
rem variable name get's set in the master login script to the user's
rem login name and the userid.
set pmuser=%ln%
set iduser=%id%
if not exist f:\mail\%id% mkdir f:\mail\%id% > nul
rem read the mail directly from the f:\unixmail\%ln% and let it on the
rem f:\mail\%id%\<files>.cnm for pegasus mail
marsmail.exe
rem if need routes, add it to the line before (g:\pmail\marsmail.exe)
rem Marsmail is the program that strips the unix mailfile appart and generates
rem a index file and loose message files... Source is included... Please
rem recompile to your needs...
rem zero.txt is a file zero bytes long but MUST exists in f:\mail !
copy f:\mail\zero.txt f:\unixmail\%name% > nul
rem call the pegasus mail reader in the natural mode
echo Please move all the mail into folders!!!
pause
pmail.exe
rem if need routes, add it to the line before (g:\pmail\pmail.exe)