Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!sdd.hp.com!spool.mu.edu!uunet!maverick.ksu.ksu.edu!hoss!hoss.unl.edu!greg From: greg@hoss.unl.edu (Lig Lury Jr.) Newsgroups: comp.sys.apple2 Subject: Re: ACOS Mail Text Files Message-ID: <1991Feb21.165246.2199@hoss.unl.edu> Date: 21 Feb 91 16:52:46 GMT References: <12584@darkstar.ucsc.edu> <1991Feb20.040507.19701@nntp-server.caltech.edu> Sender: news@hoss.unl.edu (Network News Administer) Organization: University of Nebraska - Lincoln Lines: 51 ... toddpw@nntp-server.caltech.edu (Todd P. Whitesel) writes: >How are you deleting messages? You have to delete a file before it's >space is freed, but overwriting from the beginning re-uses the blocks that >are already allocated for the file. >If your mail file is constantly growing then you must be writing stuff >onto the end and never purging the dead messages from disk -- maybe from your >own data structure but prodos only frees disk blocks when you delete a file >completely. >I need to know more about how your Prodos routines work before I can make >any intelligent guesses as to what's wrong... It sounds like he's running the standard mail configuration which has one file MAIL which is shared by all users. It can be thought of as a random-access file with record size of 4K. Each user has their mail stored in the appropriate record by user number. However if you try to CRUNCH the mail file it will repack the file, but you lose the numbering scheme. There are two ways of handling this problem. You can use one of the message file packers which will automatically create a new message file and copy all the messages from the old file to the new, or you can change your mail configuration so that each user has their own mail file, like MAIL.un where un is the user number. Then you can CRUNCH all you like, and actually delete the mail file when they've read their mail, and you'll get your disk space back. (When I first did the first one, the file was reduced from 200 blocks to 20.) Message files are the thing ACOS really has going for it. The problem is the design of the MSG.SEG.S which handles both mail and bulletins. The mail system is designed badly, and the file is simply too big -- I suggest users split the file into two called MAIL.SEG.S and BULLETINS.SEG.S, making the appropriate changes in MAIN.SEG.S. >Todd Whitesel >toddpw @ tybalt.caltech.edu Meanwhile I'll add anyone who requests it to the GBBS/ACOS Sysop Support mailing list, and accepting offers from anyone who is interested in taking over the administrative work of the mailing list, or a way to automate it. (Sorry for the delay thlayli@ucscb.UCSC.EDU (Lord Thlayli Merriadoc Valentine of Kalakiryande), but I have lots of things going on right now that I need to take care of first.) -- /// ____ \\\ DON'T \"Have you ever been to Belgium in fact?" "I think | |/ / \ \| | PANIC \ that you should restrict that sort of remark to \\_( \==/ )_// Lig Lury, Jr. \ something artistic." "You sound as if I just \__\\/ greg@hoss.unl.edu \ said something unspeakably rude." "You did." Brought to you by Super Global Mega Corp .com