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 ?
I try to do a way to save some space in disc, spliting the head and body in 2 files....because sometimes the users have the same email (Cc/CCb).
Doing this, i will use 1 body to various headers....
In delivery by SMTP is easy, split in 2 and write the files... but in IMAP is more complicated....
Tks again !
2009/12/10 Timo Sirainen <tss@iki.fi>
On Dec 10, 2009, at 7:33 AM, Alex Baule wrote:
Hi Timo...
There is a way to do this with a plugin ? or you pass the zlib-plugin for reference ?
You can do it with a plugin. I mention zlib plugin, because it works in a similar way by reading gzipped maildir files.
I can made this in the same monent the i_stream_create_fd() open the email in maildir,
and make a extra i_stream_create_fd() to my file.. then put this 2 streams (email + myfile)
in i_stream_create_concat()...
Right.