Oh and BTW:

> /* The mailbox_save() API pulls data from an istream, and the
>    imap_fetch() API pushes data into an ostream.  Dovecot does
>    not offer an ostream which feeds an istream, so use a UNIX
>    pipe.  That's not the most efficient way to move the data
>    around, but dovecot's ostreams and istreams are sufficiently
>    complex (read: under-documented) that it's easier to use a
>    pipe than to write an ostream-to-istream module.  Somebody
>    call a plumber. */

It shouldn't be necessary to write ostream-to-istream module. Instead
pass a concat-istream to mailbox_save() and add more istreams to it as
needed (this would need a new i_stream_concat_add_input() or something,
but that shouldn't be difficult). As a bonus no need to copy data
around. :)

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to