Asmodeus writes:
> On Mon, 20 Sep 1999, Randy Harmon wrote:
>
> > If there were a recommended way to implement these well-known features, it
> > could reduce confusion and support peaceful co-existence between UAs.
>
> It makes the most sense to me to just alter the 'normal' (to me at least)
> method of laying out mail: a 'mail' directory, and instead of having the
> different mail folders in mailbox format, just use Maildirs instead.
>
> ~/mail/qmail/{cur,new,tmp}
> ~/mail/ProFTPD/{cur,new.tmp}
> etc.
>
> Sub-maildirs are a little bit of a problem (because "cur", "new" and "tmp"
> are taken already), but submaildirs are also not needed in the vast
> majority of cases.
This is pretty much what I've done in sqwebmail, except that the code
transparently prefixes the name of each subdirectory with a . - they are
hidden subdirectories off the main Maildir. So a luser can create a 'new'
folder, if that's what the luser wants. I can't claim credit for this idea
- someone else suggested that approach about a year ago.
The only other thing I've done as well is automatically create a
zero-length file "maildirfolder" in each subdirectory. This is used by an
additional section of code shared by sqwebmail and maildrop that implements
a voluntary quota mechanism.
--
Sam