From owner-freebsd-hackers Sat Apr 1 07:38:33 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id HAA14753 for hackers-outgoing; Sat, 1 Apr 1995 07:38:33 -0800 Received: from UUCP-GW.CC.UH.EDU (root@UUCP-GW.CC.UH.EDU [129.7.1.11]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id HAA14741 for ; Sat, 1 Apr 1995 07:38:26 -0800 Received: from Taronga.COM by UUCP-GW.CC.UH.EDU with UUCP id AA06872 (5.67a/IDA-1.5); Sat, 1 Apr 1995 09:35:49 -0600 Received: by bonkers.taronga.com (smail2.5p) id AA01951; 1 Apr 95 09:03:15 CST (Sat) Received: (from peter@localhost) by bonkers.taronga.com (8.6.11/8.6.6) id JAA01947; Sat, 1 Apr 1995 09:03:14 -0600 From: Peter da Silva Message-Id: <199504011503.JAA01947@bonkers.taronga.com> Subject: Re: Mail... To: taob@gate.sinica.edu.tw (Brian Tao) Date: Sat, 1 Apr 1995 09:03:14 -0600 (CST) Cc: terry@cs.weber.edu, freebsd-hackers@freefall.cdrom.com In-Reply-To: from "Brian Tao" at Apr 1, 95 01:48:09 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Content-Length: 1347 Sender: hackers-owner@FreeBSD.org Precedence: bulk > Precisely. Since we are all used to seeing hierarchical > filesystems, this model can be applied to a mail spool rather well. > Each individual user's mailbox is represented as a directory > structure, where the "inodes" make up the mailbox index. Each message > is represented as an individual file inside that directory. Nifty. Then you could read it with "mh" directly without doing an "inc". HOWEVER, on the subject of special purpose file systems, let me tell you a story. On the Amiga it was decided to make the environment visible as "env:". Now, the environment was already global (the Amiga was relentlessly single-user) stored as an array off a shared library (the Aztec compiler started this and everyone picked it up). So they were going to make the "env:" device look at this. But for the first cut, they just created an assign (like a VMS logical name) pointing into RAM: called ENV:. This worked so well they just changed the library to point to the ENV: assignment. The moral is, why not just change the mail delivery software to store the mail in this format in the first place? Maybe even in the user's home directory in "Mail/inbox"? I'm not saying going and doing either... just that writing a special purpose file system is kind of a lot of work to go to when the regular file system already does the right thing.