[Dovecot] mbox zlib compression plugin

Timo Sirainen tss at iki.fi
Tue Mar 29 17:44:06 EEST 2005


Some people have been asking this forever, but because it wasn't
possible to implement it as a plugin, I hadn't done it. Now, due to some
API changes for other purposes, it was suddenly easy.

So, if you want to try it, grab the latest CVS code / nightly CVS
snapshot and http://dovecot.org/patches/1.0/zlib-plugin.tar.gz

Compilation instructions inside zlib-plugin.c file.

What it does is check if mbox name ends with ".gz", if so it opens it as
read-only using zlib. If the file isn't actually zlib compressed, zlib
seems to be able to still access it as a normal file (but it's still
read-only).

It should be possible to implement it for maildir files as well by
hooking into mail_get_stream().

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://dovecot.org/pipermail/dovecot/attachments/20050329/594595d4/attachment-0001.bin>


More information about the dovecot mailing list