home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Crawly Crypt Collection 1
/
crawlyvol1.bin
/
bbs
/
mailscan
/
mailscan.doc
next >
Wrap
Text File
|
1993-09-04
|
6KB
|
165 lines
Licence
~~~~~~~
The author specifically disclaims all warranties, expressed or
implied, to the fullest extent that the law allows, including, but not
limited to, implied warranties of merchantability and fitness for any
particular purpose with respect to defects in the program or
documentation. In no event shall the author be liable for any loss of
profit or any other form of commercial damage.
MailScan
~~~~~~~~
MailScan is a program which makes use of the feature of QuickBBS-ST
versions from 1.08, which have the capability whereby a search for
mail can be carried out by an external program when no user is online,
and the information retrieved when the user logs in, much more quickly
than a regular mail scan can be done. This means that the user does
not have to spend a lot of time waiting for the BBS to find any
waiting mail, and consequently will incur smaller phone charges.
Updating from previous edition
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
V1.01: As soon as you have unpacked the new version of MailScan,
run it again. The files produced by this version are
slightly incompatible with the previous version, and if you
use the previous versions' files then any users without any
mail will have all the mail that is waiting for the sysop
(i.e. yourself) marked.
Installation
~~~~~~~~~~~~
The installation process is fairly easy, although I recommend that you
either have this part of the documentation to hand when setting up
MailScan, or jot down the important details. You must be using a
command line interpreter, and be using a batch file to execute
QuickBBS-ST.
1. Unpack the program. It can be placed in any directory, as long as
you are using the QBBS environment variable. Otherwise, place it in
the directory that QuickBBS-ST itself resides in. All directories
will be found from QuickBBS-ST's configuration files.
2. Scanning for mail. You need to set MailScan scanning for mail
immediately after the numbers of existing messages, or users,
change. Common causes are the use of FastPack, MPack, one of the
mail scanners that deletes old messages, or a user packer. Before
any user is allowed onto your system, you should run MailScan with
the parameter /s. (A full list of parameters is available by typing
"mailscan /?".)
On my system, this batch file is part of one which is run every
morning at 0800 hours:
jetmail maint ;# deletes old messages
mailscan /s ;# scans for users' mail
3. Showing mail waiting for a user. A .DOR file must be executed,
which may be WELCOME.DOR if desired. A basic implementation of a
compatible .DOR file is as follows:
write dorinfo1.def
send Marking waiting mail
exec mailscan.ttp
if *C<0 then goto newuser
if *C>500 then goto newuser
send You have *C messages waiting.
readmarked
Here is an example of a more complex .DOR file, which is similar to
the one I use:
write dorinfo1.def
send Marking your waiting mail
exec mailscan.ttp
if *C<0 then goto newuser
if *C>500 then goto newuser
if *C=0 then goto nomail
:rpt
send
if *C=1 then prompt You have 1 message waiting. Do you want to read
it now [Y/n]? ^H
if *C>1 then prompt You have *C messages waiting. Do you want to
read them now [Y/n]? ^H
key
if *CHR ~ Y then goto readmail
if *CHR ~ N then goto dont
if *ASC = 13 then goto readmail
goto rpt
:readmail
send Yes
readmarked
exit
:dont
send No
exit
:nomail
send You have no mail waiting.
exit
:newuser
send Since you are new here, your mail has not yet been searched
send for. Any mail waiting for you will be marked ready for you to
send read upon your next call after 08:00 tomorrow.
exit
If you wish, dig the .DOR file segment out of this documentation
and use it. The ^H signifies a backspace character.
4. Making sure MailScan works initially. Type mailscan /s during or
after installation, to make the message index files for each user
ready.
Use and Notes
~~~~~~~~~~~~~
The indices of messages that have the Received and/or Deleted flags
set are not stored in the files produced (USERMSGS.PTR and
USERMSGS.DAT). Therefore, these messages will not be shown to the
user.
The names of bases, and numbers of waiting messages, will be shown to
the user exactly as if QuickBBS-ST's own mail scanner is being used.
However, access levels are not checked at present. Presumably
QuickBBS-ST will check that the user has access to the base, but the
message will appear as waiting.
If a message has been deleted, or marked as read, after the mail scan,
it will still not be shown to the user as each message is checked by
MailScan for these flags at use time.
What's new in v1.01?
~~~~~~~~~~~~~~~~~~~~
o Copyright line is no longer shown to the user. The version number
replaces this information;
o Security level checks: each user must have the correct flags set,
and at least enough security, to read mail in a base, otherwise
mail will not be marked;
o Mail bases not used by QBBS (without a name in the message base
configuration) are no longer scanned;
o A speed indication is shown at the end of a scan.
o Messages can now be read which are waiting for the sysop. (Actually
this problem affected the first user to have any messages, this is
of course usually the sysop.)
Programming
~~~~~~~~~~~
This program was written using GfA Basic v3.5.
Distribution
~~~~~~~~~~~~
This program may be freely distributed, and used, without making any
donation to me. This original documentation must accompany the program
or archive.
Contact and Support
~~~~~~~~~~~~~~~~~~~
The author is David J. Thomas, and can be contacted at 2:442/600,
90:103/103, or 100:104/0. Happy MailScanning!