[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Maildir with uw-imapd

On Thu, Oct 02, 2003 at 09:38:55PM -0400, Roberto Sanchez wrote:
> Bijan Soleymani wrote:
> >On Thu, Oct 02, 2003 at 08:03:52PM -0400, Roberto Sanchez wrote:
> >
> >>Juri Haberland wrote:
> >>
> >>
> >>>And AFAIK UW-IMAP can *only* work with mbox files, *not* with Maildirs.
> >>>
> >>
> >>That is simply not true:
> >>
> >>$ apt-show-versions |grep uw-imap
> >>uw-imapd-ssl/stable uptodate 4:2001adebian-6
> >>$ ls ~/mail/
> >>Fall 2003  Personal  School  Trash
> >
> >
> >Are these directories containing the folders:
> >cur new tmp
> >
> >and with each of these containing individual message files with names
> >like: 
> >1065141220.1077_1.server:2,s
> >
> >or are these individual mbox files.
> >
> >Because I know people who use uw-imapd with hundreds of folders with
> >1000s of mboxen, but they don't use Maildir.
> >
> >Bijan
> Individual files.  There are no directories below ~/mail

So you mean that Personal, School and Trash are files? That would
indicate than they are standard mbox files. Maildir format doesn't work
that way. With maildir each mailbox *is* a folder, with three standard
subfolders: new (for new message), cur (for old messages), tmp (I don't
know what this is for, probably temporary storage of some kind).

And each message goes in a seperate file and they all have weird names
so that they are guaranteed to be unique, I think they use a timestamp,
the inode number, and the hostname or something like that.

Maildir has certain technical advantages, and certain not so technical
advantages. For example there is no need for locking, no rewriting of
entire mailbox, all this boosts performance and reduces risk of
corruption even in the event of a bad crash.

The performance advantages made me switch from uw-imapd to courier-imap
at work. People were getting huge attachments that crippled uw-imapd. I
think once I saw someone get a single email with 37 megs of attachments.

Bijan Soleymani <bijan@psq.com>

Attachment: signature.asc
Description: Digital signature

Reply to: