home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
mailers
/
msgnum10.zip
/
MSGNUM.BAK
< prev
next >
Wrap
Text File
|
1993-05-01
|
9KB
|
220 lines
MsgNum v1.0
(C) jLc Software, 1993
Author: Joe Hacker
Address: FidoNet 1:160/140
CFN 8:3017/0
ICDM 77:2/0
Release Date: 01 MAY 93
─────────────────────────────────────────────────────────────
What Is MsgNum
─────────────────────────────────────────────────────────────
MsgNum is a Hudson Style Message Base Utility that allows
you to determine if enough mail came through with your last
packet to justify linking and sorting your messages. Why
waste the hard drive life on 1 or 2 messages coming in?
MsgNum will compare the old number of the messages in the
message base with the number of messages AFTER new mail is
tossed. MsgNum saves my hard drive about 40 minutes a day of
reading/writing. Push that out a year, and I have saved 243
hours of continuous writing on my hard drive.
The best of all - MsgNum is FREE!
─────────────────────────────────────────────────────────────
Do I Need MsgNum
─────────────────────────────────────────────────────────────
If you are linking your messages after every mail call -
simply put - YES!!!
─────────────────────────────────────────────────────────────
DISCLAIMER
─────────────────────────────────────────────────────────────
The only thing that I guarantee is that it was written by me.
It works great here and on another system that I know of but
it may not work on yours for some reason. I won't be held
responsible from any hard/software damages that you may
incur resulting from running MsgNum. (Had to say it... but
I'm sure you won't have any difficulty).
This program has been tested with DOS 5.0 and OS2 2.10
─────────────────────────────────────────────────────────────
Setting Up and Running MsgNum
─────────────────────────────────────────────────────────────
Installation and configuration is easy. Simply use an ASCII
editor to edit the enclosed file MSGNUM.CFG. This file should
consist of two lines as follows:
Line 1 - directory to your message base
Line 2 - number of messages tossed to activate linking,
sorting, or whatever else you want to do with your message
base.
----Example of MSGNUM.CFG---
c:\ra\msgbase
20
----End of Example file-----
There should be only two lines in this file, and it can't
contain semi-colons, etc.
You do not need a trailing backslash on your directory line,
but if it is there - it won't hurt. MsgNum will handle
either.
Place MsgNum.exe and MsgNum.cfg in the same directory as your
echomail tosser (ie. if you run FastEcho, put MsgNum.* in the
same directory as your FastEcho).
Now you are ready to run MsgNum. Simply type 'MSGNUM'.
MsgNum will create a file called MsgNum.Old - this will be a
one liner with only one thing in it - the number of messages
that are in your message base.
MsgNum will exit with one of three errorlevels.
Errorlevel 1 - The _DIFFERENCE_ in the number of messages in
your message base now and the number of messages prior to
your toss is less than the allowable amount in your
configuration file. No message base maintenance
(linking, sorting, etc.) is needed.
Errorlevel 2 - The _DIFFERENCE_ in the number of messages in
your message base now and the number of messages prior to
your toss is greater than the allowable amount in your
configuration file. Message base maintenance is needed. Run
your linking, sorting, indexing, etc.
Errorlevel 3 - Could be one of two things.
(1) MsgNum.Old was not found - it was created.
(2) The number in MsgNum.Old is Greater than the actual
number of messages now. This is probably due to
maintenance and deletion of mail.
No maintenance is needed either case.
Here's how you incorporate MsgNum in your batch file.
-------------Regular batch file for tossing mail-------------
:TOSS
run your echomail tosser
MsgNum
If Errorlevel 3 Goto END
If Errorlevel 2 Goto LINK
If Errorlevel 1 Goto END
:LINK
REM The number of messages that came in were higher than the
REM number in the MsgNum configuration file.
run your echomail linker, sorter, etc.
:END
REM Ah, not enough messages came in to worry about.
return to your mailer
-----------End of Mail Tossing Batch File--------------------
And you SHOULD run MsgNum in your maintenance event batch
file like:
-----------Maintenance Batch File----------------------------
:MAINT
REM run your maintenance
delete old messages and purge them, etc.
MsgNum
whatever other maintenance you have
-----------End of Maintenance Batch File Example-------------
When running MsgNum after deleting or purging, don't worry
about trapping the errorlevels. It's not needed.
─────────────────────────────────────────────────────────────
Important Things To Remember
─────────────────────────────────────────────────────────────
1. You must have the MsgNum.cfg in the same directory as
MsgNum.
2. You must be in the directory that MsgNum is residing to
run it.
3. You must realize that running MsgNum will save you LOTS of
disk writing if used. How much? Saves me 40 minutes a day of
continuous disk reading/writing. MsgNum will do the same for
the life expectancy of your drive.
─────────────────────────────────────────────────────────────
Support
─────────────────────────────────────────────────────────────
I doubt if you need it, but I'll answer simple questions if
you netmail me at one of the above listed addresses. I will
be limited to routing your replies back, though. I'm not
charging for this program, so I'm not gonna spend any money
supporting it either. Like I said before, I doubt if you'll
need any help.
─────────────────────────────────────────────────────────────
Registration
─────────────────────────────────────────────────────────────
Ah, I said it was free, didn't I. Well, it is. But, I would
like to know that you are using it. Take a moment and send me
netmail (just route it and save a dime) at one of the
addresses listed above.
Who knows, maybe I'll still you on an electronic mailing list
for other goodies I'll write.
If you run MsgNum and feel it is extremely beneficial and
want to compensate me for the time I took to write it
(actually the docs took longer to write than the program),
you can send me a donation at:
jLc Software
C/O Joe Hacker
602 Ninth Street
Corpus Christi, TX 78418
USA
─────────────────────────────────────────────────────────────
Closing Thoughts
─────────────────────────────────────────────────────────────
This program was inspired by two people. They are:
1. Niels Rutjes - author of Total.
Niels wrote a similar program. I liked it - but didn't
like all the errorlevels it would need.
2. Bob Barnes - author of nothing.
Bob was part of the inspiration for Total. But I guess
when he started running OS2 - Total stopped working for
him, so I wrote MsgNum. Bob's a friend. He'll also help
you get MsgNum running if you are having some kind of
difficulty. He's at 1:160/202.