[Dovecot] 1.1 and the zlib plugin

Timo Sirainen tss at iki.fi
Sat Jul 12 15:35:54 EEST 2008


On Tue, 2008-06-24 at 13:59 -0500, Kyle Wheeler wrote:
> I've been playing around with using namespaces to change the way 
> messages are stored. My idea was to use mbox for archival stuff, like 
> this:
> 
>      namespace private {
>          separator = .
>          hidden = no
>          inbox = yes
>          prefox =
>          location = maildir:%h/Maildir
>      }
>      namespace private {
>          separator = .
>          hidden = no
>          prefix = "INBOX.Archive."
>          location = mbox:%h/Maildir/Archive
>      }
..
>      ? SELECT "INBOX.Archive.Friends.gz"
>      ? NO Mailbox doesn't exist: Friends/gz

I'd just suggest switching separator to '/' and this problem goes away.

> Then I remembered that in the ChangeLog, back in May, the zlib plugin 
> was changed to look for the zlib header rather than the Z flag. I 
> assume that was for using it with Maildirs, but I figured it was worth 
> a shot. So I renamed the Friends.gz file to remove the extension. But 
> that just gives me an error message:
> 
>      ? SELECT "INBOX.Archive.Friends"
>      ? NO Mailbox isn't a valid mbox file

For mbox detecting this by reading the file header would be extra disk
I/O (since often the file hasn't changed and Dovecot never has to
open/read the file).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20080712/453b6922/attachment.bin 


More information about the dovecot mailing list