home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
c
/
cn311-sw.zip
/
MAILCALL.DOC
< prev
next >
Wrap
Text File
|
1991-12-14
|
5KB
|
132 lines
Mailcall Version 3.10: mail packet transfer utility for CircuitNet
hosts. 12-14-91 11:25:44 am
Mailcall is a utility that will select the proper mailpacket and
send it via one of Spitfire's external download batch files. It
requires a command line parameter specifying the complete pathname
of the batchfile to use, or the word "Edit" to edit or create the
data file. Since Mailcall was Written as a replacement for CircDoor
as written by Sean C. Burbidge, it will recognize and use CIRCDOOR.
DAT as well as MAILCALL.DAT. It will read in CIRCDOOR.DAT and Write
MAILCALL.DAT in edit mode if MAILCALL.DAT is not found.
FILE TRANSFER MODE:
Overview: Mailcall reads CIRCUIT.CFG to find the path to the
Spitfire system directory, and the CircuitNEt directories. It then
looks in the Spitfire System directory for SFDOORS or one of the
compatible files written by SpitFire 3.1. It looks for SFDOORS.DAT,
SFMAIN.DAT, SFMESS.DAT, or SFFILE.DAT, in that order, and uses the
first that it finds. It reads the User's NAME, BAUD rate, and the
com PORT from the .DAT file. It then searches for MAILCALL.DAT, or
CIRCDOOR.DAT, and tries to match the name from the Spitfire Data
file. When it finds a match, it builds a fully qualified path to a
file in the CircuitNet MAIL directory with node + .ZIP as the
filename. Mailcall then executes the batch file specified on the
command line, and passes the BAUD, PORT, and FileName in the same
format as used for Spitfire 3.1 external download protocol batch
files. (See SFEXTDN(x).BAT in your Spitfire documentation) It then
writes a message to the CircuitNet Activity Log specifying the user
and the exit code returned by the Exec function.
If an error other than "Circuit.CFG Not found" occurs, Mailcall will
write the error to the Circuitnet error log, and halt with one of
the following errorlevels:
255 -- CIRCUIT.CFG not found
254 -- No command line specified
253 -- Batch file specified does not exist
252 -- SFDOORS.DAT or Equivalent not found
251 -- MAILCALL.DAT or CIRCDOOR.DAT not found
2 -- User not found in data file
1 -- No mail to send
Examples:
{ SFSEC5.BAT }
CD \SF\CIRCUIT
MAILCALL C:\SF\EXTNOD1\SFEXTDNA.BAT
IF ERRORLEVEL 251 THEN FATAL
IF ERRORLEVEL 2 THEN DONE
IF ERRORLEVEL 1 THEN NOMAIL
GOTO DONE
:FATAL
Echo Fatal error in mailcall >> \SF\WORK\HEYSYSOP.LOG
GOTO DONE
:NOMAIL
rem Put whatever commands you want here to take care of a no mail
rem packet found condition.
:DONE
EDIT FILE MODE:
Overview: When the word EDIT is found on the command line,
Mailcall will read in the CIRCUIT.CFG file, and search the
CircuitNet system directory for either MAILCALL.DAT or CIRCDOOR.
DAT. It will read the file into memory, and give you the option of
editing a record, deleting a record, adding a record, or listing the
current records to screen or printer. When you are done editing or
listing the file, it will ask if you wish to save any changes. If
you answer NO, it will simply exit to dos, otherwise it will Write
all records from memory to MAILCALL.DAT regardless of which file
they were read from. If neither file is found, then MAILCALL.DAT
will be created if you added at least one record. If no records
were entered, or all records were deleted, then MAILCALL.DAT will
be deleted.
Another command line option has been added to the EDIT FILE MODE:
This is the Color option. If you run MAILCALL EDIT mailcall is
defaulted to a Black and White color screen, if you run MAILCALL
EDIT COLOR you will get a Blue background with White Letters on the
screen.
MAILCALL EDIT MODE MENUS:
[E] - Edit a Person in DataBase
[F] - Edit User DataBase
[A] - Add User to DataBase
[P] - Print DataBase
[Q] - Quit MailCall
Option [E]
First you will be asked for the user name to be edited in the
Database, if that user can not be found you will be given a message
stating the user can not be found and returned to the main menu. If
the user was found you will then see the next menu.
[U] - User Name: 702001
[N] - File Name: 702001.ZIP
Record Number: 1
[D] - Delete this User
[Q] - To Quit this Menu
Option [F]
This option will allow you to edit or delete a user in the database.
To move forward or backward in the database use the - or + keys.
[U] - User Name: 702001
[N] - File Name: 702001.ZIP
Record Number: 1
[D] - Delete this User
[-] - For Previous User
[+] - For Next User
[Q] - Quit this Menu
Option [A]
This option will allow you to add a user to the database.
Option [P]
This option will allow you to either display the database to the
screen or to print the database to paper.
Option [Q]
This option will end the program, but first it will ask you if you
want to save the changes made to the database. If you choose not to
save then all changes made will be lost forever.