home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 15
/
CD_ASCQ_15_070894.iso
/
vrac
/
tgnm500.zip
/
NEWMAIL.DOC
< prev
next >
Wrap
Text File
|
1994-06-13
|
5KB
|
130 lines
■ NEWMAIL.EXE Version 5.00αlpha
■ Telegard 2.7s AUTO.MSG Utility -Released as FREEWARE
WHAT THIS PROGRAM DOES:
Upon logon I wanted to tell my users that "new mail" had arrived, or had been
posted in the message bases. Orginally Newmail simply stamped the time and
date in to the AUTO.MSG file when executed from my mailer's UNPACK.BAT. So
Users would know that last time InBound Mail was processed.
Newmail could also generate a random Oneliner Quote from the NEWMAIL.DAX
database file. Newmail still generates quotes, but the file and format are
different.
I stated in an earlier doc that Newmail would be able to tell you exactly
what message bases received "new mail". It does that now, along with a
status and how many messages are in that message base.
CHANGES:
NEWMAIL.DAX: no longer the Oneliner Quote database, now an on-site index that
contains information for the "-V"erbose switch. If this file should get lost
or doesn't exist, don't worry, Newmail will rebuild it automatically. When
you first run Newmail in the "-V"erbose mode this file is created and updated
accordingly. Generally speaking, this file is created and maintained by the
program and you don't have to mess with it at all.
NEWMAIL.ONE: (new file) Newmail no longer keeps a standard database for its'
quotes, it keeps them in straight ASCII, you can use a text/ascii editor to
add, delete, rewrite, whatever to this file. If you use the "-Q"uote command
and the NEWMAIL.ONE file doesn't exist, Newmail will use one of (very few) the
internal quotes it has and write it to the AUTO.MSG file. All I did was take
an ASCII file of Oneliners, rename it to NEWMAIL.ONE. Simple. A sample
NEWMAIL.ONE Oneliner file should be included in this archive.
NEWMAIL.HDR: (new file) this is a Header File, whatever information in this
file exists, it will be appended before the newmail data. This is an OPTIONAL
FILE, and only will be added to the auto.msg if it exists in the current
directory.
NEWMAIL.FTR: (new file) this is a Footer File, whatever information in this
file exists, it will be appended after the newmail data. This is an OPTIONAL
FILE, and only will be added to the auto.msg if if exists int he current
directory.
BUILDOL: there is no true use for Buildol anymore, now that the Quote file is
straight ASCII. However, using the "-B"uild command will allow you to extract
the OLD NEWMAIL.DAX file in to ASCII format for use as NEWMAIL.ONE file. Pretty
slick, Huh?
SWITCHES: command switches have changed, take a look either futhure along in
this doc or just type NEWMAIL at the dos prompt to access help.
ERROR HANDLING: mostly in the switch arrangements, finding files. There are
somethings that Newmail can't handle and it will "bail" if something really
nasty happens.
TESTING: ya, beleive it or not, I tested this version before I released it.
Nice of me, huh?
AUTO.MSG: Newmail now OVERWRITES this file with its' new information, it no
longer appends it. So any scribling your users do in the AUTO.MSG file will
be overwritten by Newmail, it has no mercy.
SYSOP.LOG: Newmail now makes a brief entry in the sysop log file, time/date
at run time.
PROGRAM SET-UP:
Place Newmail and (if you have one) the NEWMAIL.ONE file in you directory with
STATUS.DAT, has to have this file to find the AFILES, MSGS, and GFILES
directories. The first time you use the "-V"erbose command the NEWMAIL.DAX file
will be created.
PROGRAM SWITCHES:
syntax: NEWMAIL -<command> -<command>
Switch: Function:
<no switch or -?> Help Screen
-B Access internal BUILDOL, extract old NEWMAIL.DAX to ASCII
-V Verbose message base listing, what base got mail & status
-Q Generate Random Oneliner from NEWMAIL.ONE
-S See the Oneliner that was generated, put it on screen
-N Normal output, time/date stamp only
examples:
NEWMAIL -v -q -s
Verbose information, generate a oneliner, I want to also see the oneliner
NEWMAIL -N
Normal output, no quotes, no verbose, just time/date stamped in AUTO.MSG
NEWMAIL -V -N
This don't work, normal output and verbose output? I don't think so.
NOTE: upper/lower case makes no difference
TECHNICAL:
Compulation: QuickBASIC 4.5
NEWMAIL.DAX Record Size: 80 bytes (82 real)
Oneliner Generation Method: Timer is RANDOMIZED, Number of Lines Calculated in
the NEWMAIL.ONE, the Oneliner is chosen by a random number, or rather a line.
So if you have 2000 Oneliners it may take a few seconds.
Board Access Method: Reads BOARDS.DAT
Maxium Message Bases Processed: Hell if I know, I have 30 and it does just fine
Internal Oneliners: 24 of them, all stupid
LAST NOTES:
I run Newmail in my Mailer's UNPACK.BAT, which is ran everytime I receive
New InBound Echomail.
The NEWMAIL.HDR and NEWMAIL.FTR files, these are optional files. Good for
placing whatever information in them you want to display along with the
newmail data. They are only added if they exist in the current directory.
Ron Dean 3811/514 fido
System Operator, Comnet SEML BBS