home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Crawly Crypt Collection 1
/
crawlyvol1.bin
/
bbs
/
prepack3
/
prepack.doc
< prev
next >
Wrap
Text File
|
1993-01-08
|
4KB
|
98 lines
PREPACK ~ Prepacked mail list creator
-------------------------------------
Why this program? , well I had two or three users who requested Prepacked
Qmail and requested various days , one requested mail every day and they all
promised to collect the mail as an when it was available.
Having recently checked I find 2 of the users who collect mail once a week
only do so sparodicaly and one who requested prepacking every day hasn't
called in 60 days!! , so for 60 days mail had been packed for this user
taking anything upto 15 minutes to process and pack.
If your BBS is anything like mine because the packing usually happens about
5am after mailing , you won't know how often your users are actually
collecting the mail.
This is where PREPACK comes in, it will create a file called PREPACK.LST
containing a list of valid names for the current days prepacking.
You will need to create a PREPACK.CFG file in your main bbs directory , it
has the following format
DAY,USERNAME,DAYS SINCE LAST CALL
Where DAY is any of the following days that mail is to be packed for
ALL Every Day
MON Monday
TUE Tuesday
WED Wednesday
THU Thursday
FRI Friday
SAT Saturday
SUN Sunday
So the entry for a user who wants mail each day (John smith) and you wish
to check that he has called within the last 4 days to collect mail would be
as follows.
ALL,John Smith,4
After 4 days of not calling he will not be included in the list for that day
, his old mail packet will be deleted and until he calls his name will not
be added into PREPACK.LST , after he has called again then the next night
he will be re-added into the PREPACK.LST file.
This will put the onus for collecting mail on the user for a change and not
on the sysop to keep checking up on his/her users.
so the format of the PREPACK.CFG could be as follows
ALL,Michael Jarvis,4
ALL,Jon Haworth,4
ALL,Noname,7
MON,Henry Dennis,7
TUE,Wayne Barnes,7
THU,Paul Kokis,7
THU,Henry Dennis,7
THU,Wayne Barnes,7
SAT,Spencer Davies,7
SAT,Wayne Barnes,7
SUN,Paul Kokis,7
SUN,Wayne Barnes,7
SUN,Stephen Nathan,7
I usually give users a couple of days grace before removing them from the
PREPACK.LST as they may have problems logging on due to a busy period, hence
the 4 day limit on users getting mail every day. (but it's upto you)
After completing the PREPACK.CFG , you need to run PREPACK with the
parameter COMPILE , this then produces a slightly compiled list called
PREPACK.DAT , this is used to speed up the process of reading the TPAS.DAT.
Every time you change the PREPACK.CFG you MUST use COMPILE.
When you wish to run PREPACK then use the parameter RUN , this will then
Scan the users , compare the number of days since they were on last with
the limits in the PREPACK.CFG file and produce the text file PREPACK.LST.
If you use the parameters RUN KILL then it will also delete the old Qmail
packet for each user who has not called within the specified number of days.
All you need to do then is run
$QUSER @PREPACK.LST once a day in your batch files and only mail for those
users who require mail on that day and those who have called within their
specified number of days will be packed , saving time , disk useage and
hastle for you and your BBS.
Disclaimer
==========
I make no warranty on this software or it's perforamance , I cannot be held
responsible for any problems or damage that occour to your hardware or
software wether directly or indirectly attributed to this program.