struct attachment_istream_part part;
bool retry_read;
- bool failed;
};
static void stream_add_data(struct attachment_istream *astream,
if (stream->pos - stream->skip >= i_stream_get_max_buffer_size(&stream->istream))
return -2;
- if (astream->failed) {
- stream->istream.stream_errno = EINVAL;
- return -1;
- }
-
old_size = stream->pos - stream->skip;
switch (message_parser_parse_next_block(astream->parser, &block)) {
case -1:
if (ret < 0) {
io_stream_set_error(&stream->iostream, "%s", error);
stream->istream.stream_errno = EINVAL;
- astream->failed = TRUE;
}
astream->cur_part = NULL;
return -1;
if (astream_end_of_part(astream, &error) < 0) {
io_stream_set_error(&stream->iostream, "%s", error);
stream->istream.stream_errno = EINVAL;
- astream->failed = TRUE;
return -1;
}
}