[Dovecot] Developer Documentation

Timo Sirainen tss at iki.fi
Thu Dec 10 18:26:13 EET 2009


On Dec 10, 2009, at 11:16 AM, Alex Baule wrote:

> Ok ... i understand... 
> 
> this is the last one...lol
> 
> in zib plugin i see a implementation of i_stream_create_zlib, this is a "substitution" to the i_stream_create_fd , right ? 
> 
> So, i need to do every think like in istream-zlib.c (close, destroy, read, seek, stat and sync) to swap the original functions ?

No, you don't need to implement a new istream, just ignore istream-zlib.c completely. Instead of the plugin calling i_stream_create_zlib, you just call i_stream_create_concat.



More information about the dovecot mailing list