complexity for many callers. Just require that at this point
after flushing there isn't anything in the output buffer or that
we're ignoring all errors. */
+ bool last_errors_not_checked =
+ stream->real_stream->last_errors_not_checked;
+
if (o_stream_flush(stream) == 0)
i_assert(stream->real_stream->error_handling_disabled);
+ /* We don't want this auto-flushing to remove the need for
+ proper error checking. */
+ if (last_errors_not_checked)
+ stream->real_stream->last_errors_not_checked = TRUE;
+
if (!stream->closed && !stream->real_stream->closing) {
/* first mark the stream as being closed so the
o_stream_copy_error_from_parent() won't recurse us back