[Dovecot] emulating courier imap
I'm trying this:
default_mail_env = maildir:%h/.maildir:INDEX=%h/.indexes:INBOX=% h/.maildir namespace private { separator = . prefix = INBOX. inbox = no } namespace private { separator = . prefix = inbox = yes hidden = yes }
but dovecot doesn't appear to be honoring "hidden" - am I missing something? (that is, all my folders appear twice- one under INBOX, the other under root)
I tried without the second segment, and makign the first one "inbox=yes"
- but then I got two inboxes...
-- Internet Connection High Quality Web Hosting http://www.internetconnection.net/
On Mon, 2005-03-14 at 11:58 -0500, Geo Carncross wrote:
I'm trying this:
default_mail_env = maildir:%h/.maildir:INDEX=%h/.indexes:INBOX=% h/.maildir namespace private { separator = . prefix = INBOX. inbox = no } namespace private { separator = . prefix = inbox = yes hidden = yes }
but dovecot doesn't appear to be honoring "hidden" - am I missing something? (that is, all my folders appear twice- one under INBOX, the other under root)
I'm not sure if your patch is exactly correct for this. The LIST code is pretty strange in how it works and I think I've finally gotten it right, changing something might break it.. Even though only with such hidden=yes prefix="" special case..
Anyway, I'll try to look at the code soon to make sure it does what it's supposed to and add a few comments there..
I tried without the second segment, and makign the first one "inbox=yes"
- but then I got two inboxes...
That's the way it should be done. With two inboxes do you mean INBOX and INBOX.INBOX? This is a bug, I'll get that fixed too.
On Tue, 2005-03-15 at 23:30 +0200, Timo Sirainen wrote:
I'm not sure if your patch is exactly correct for this. The LIST code is pretty strange in how it works and I think I've finally gotten it right, changing something might break it.. Even though only with such hidden=yes prefix="" special case..
Anyway, I'll try to look at the code soon to make sure it does what it's supposed to and add a few comments there..
That made me think of a quote by Brian Kernighan:
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.” — Brian W. Kernighan
Mike.
participants (3)
-
Geo Carncross
-
Miquel van Smoorenburg
-
Timo Sirainen