[Dovecot] feature request - zlib compression via LDA

Timo Sirainen tss at iki.fi
Fri Jun 5 01:12:17 EEST 2009


On Thu, 2009-06-04 at 17:05 -0500, J.P. Trosclair wrote:
> Timo Sirainen wrote:
> > On Thu, 2009-06-04 at 16:52 -0500, J.P. Trosclair wrote:
> >> Any chance of getting compression support via the zlib plugin for
> >> dovecot deliver in future versions?
> >
> > Sure, if someone implements it. For me it's a very low priority.
> 
> 
> Understood, was also wondering if a patch would be taken upstream for 
> such a feature, that answers that.

I can give a few implementation hints:

With v1.2 you should be able to do this completely in a plugin, because
maildir saving keeps the output stream in struct
mail_save_context.output. You could hook into mailbox.save_begin() where
you'll first call the super.save_begin() and then replace the created
output stream with a zlib_ostream, which you'll need to implement.
Currently the only implemented output stream is src/lib/ostream-file.c.

Actually it sounds like it would be pretty easy to implement after the
zlib_ostream is done. I thought it would have been more complex. :)
-------------- 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/20090604/008ccddc/attachment-0001.bin 


More information about the dovecot mailing list