[Dovecot] Mixing mbox and maildir

Tom Alsberg alsbergt at cs.huji.ac.il
Mon Mar 21 16:09:24 EET 2005


On Mon, Mar 21, 2005 at 02:48:03PM +0200, Timo Sirainen wrote:
> On 21.3.2005, at 08:12, Tom Alsberg wrote:
> 
> >On Sun, Mar 06, 2005 at 03:16:23PM +0200, Timo Sirainen wrote:
> >>On 6.3.2005, at 13:48, Tom Alsberg wrote:
> >>><snip />
> >>>Is there no way to just have Dovecot detect whether the mailbox is in
> >>>maildir or mbox format on opening?
> >>
> >>There's no way for now.
> >
> >Are there any plans to add this option?  How difficult would it be to
> >change Dovecot to check the type on open?  Any guidance on how to do
> >that?
> 
> The problem is that currently the mailbox listing code is combined with 
> the actual mailbox format handling code.

Oh, I see...

Any plans to separate those to enable mixing of mailboxes at some
point?

> They would have to be separated in some way so that the mailbox
> handling code is run only when mailbox is being opened. Except there
> would also have to be some kind of mailbox format specific filters
> in the listing code, so that nothing would be shown under
> "~/mail/foo" if ~/mail/foo/new (and cur and tmp?) exists.

Why?  There can be an hierarchy of mailboxes (a mailbox can contain
sub-mailboxes, etc.)

I would more like say that if new, (and cur, and tmp?) exist, it will
be treated as maildir, and only those subdirectories will not be
shown...

  -- Tom

-- 
  Tom Alsberg - hacker (being the best description fitting this space)
  Web page:	http://www.cs.huji.ac.il/~alsbergt/
DISCLAIMER:  The above message does not even necessarily represent what
my fingers have typed on the keyboard, save anything further.



More information about the dovecot mailing list