[Dovecot] Plugin

Alex Baule alexwbaule at gmail.com
Wed Jan 20 20:45:37 EET 2010


Hello Everyone...

Some time ago, i send some questions about plugins and concat 2 file
handles.

So, there is another questions about this.

Timo Sirainen send to me this modification, in
src/lib-storage/index/maildir/maildir-mail.c

struct istream *full_input[3];
full_input[0] = i_stream_create_fd(fd, 0, TRUE);
full_input[1] = i_stream_create_fd(fd1, 0, TRUE);
full_input[2] = NULL;
input = i_stream_create_concat(full_
input);

This is necessary because my Header and Body is splited.
This modification works fine.

My question is:

There is a way to do this with a plugin ?
I dont know how to implement this in a plugin, because i dont know what is
the hook to change the maildir_open_mail functions. (this is the function
with the modification above) .

Another question is: There is a seek function, in dovecot, and in zlib
plugin, it is rewrite by another function, that use the "gzseek" to do the
seek. My splited body will be encrypted, and the crypto no have seek,
because the message will be encrypted. (if i open the message, decrypt and
seek to some position, maybe work).

The seek function is really necessary to IMAP and maildir ?


More information about the dovecot mailing list