On Wed, 26 Feb 2003, Dale Woolridge wrote:
>On 26-Feb-2003 08:14 Andreas Aardal Hanssen wrote:
> Wouldn't you say this is just one step (or several tiny ones) away
> from having support for a transformation definition in the config?
> And isn't that just one (...) step away from having a completely
> open scheme?
Well, since the server trunk has to be compliant with standards, and there
is only one way to store mailboxes and submailboxes in the
Maildir/Maildir++ standards, I can't make it all configurable. The thought
has struct me to make the maildir translation configurable through some
sort of a scripting language, but that would mean that Binc allows
noncompliant maildirs.
> Either way, that would be a most welcome change.
> That the server will chroot to the mail path is nice, but it would
> be nicer still if it was not strictly required for the mail path to
> be a maildir. For example, one might want all mail to sit under
> ~/mail/. The inbox might be ~/mail/INBOX or ~/mail/Maildir.
> Naturally the name is irrelevant as long as inbox is actually
> a maildir.
Maildir is a mailbox format that consists of a directory on your harddrive
with three subdirectories: cur, new and tmp, and some additional features
that are all properly documented.
I think what you are looking for is support for mailbox formats other than
Maildir, such as mbox, which allows a whole mailbox to be stored in one
file alone. This server sadly doesn't support other formats than Maildir.
> With Binc taking advantage of "a Maildir is a directory" via
> chroot, it sort of paints itself into a corner by requiring
> other mailboxes to also be inside that Maildir (the black box).
Yes, that's the general idea. The entire mailbox depository is inside one
directory. This is usually considered to be a good thing, because the
server can chroot("~/Maildir") and chdir("/"), reducing the total amount
of damage done if a malicious user hijacked your IMAP session in some way
or another.
Andy :-)
--
Andreas Aardal Hanssen | http://www.andreas.hanssen.name/gpg
Author of Binc IMAP | Nil desperandum