Displaying 1 result from an estimated 1 matches for "o_stream_x_flush".
Did you mean:
o_stream_flush
2011 Oct 31
1
Rewrite the ostream output method, to save messages in another directory.
...am;
struct ostream *new_output;
int fd;
fd = open("/tmp/email",O_WRONLY);
new_output = o_stream_create_fd_file(fd, 0, TRUE);
o_stream_cork(new_output);
emexis_stream = i_new(struct emexis_ostream, 1);
emexis_stream->ostream.sendv = o_stream_X_sendv;
emexis_stream->ostream.flush = o_stream_X_flush;
emexis_stream->ostream.iostream.close = o_stream_X_close;
emexis_stream->output = new_output;
emexis_stream->input = input;
o_stream_ref(new_output);
return o_stream_create(&X_stream->ostream);
}
With this new o_stream, i got this error.
Oct 27 15:14:24 brc dovecot: imap(alex...