#ifndef ISTREAM_ATTACHMENT_CONNECTOR_H
#define ISTREAM_ATTACHMENT_CONNECTOR_H
/* Start building a message stream. The base_input contains the message
without attachments. The final stream must be exactly msg_size bytes.
If the original msg_size isn't known, it can be set to (uoff_t)-1. */
struct istream_attachment_connector *
/* Add the given input stream as attachment. The attachment starts at the given
start_offset in the (original) message. If base64_blocks_per_line is
non-zero, the input is base64-encoded with the given settings. The
(resulting base64-encoded) input must have exactly encoded_size bytes.
Returns 0 if the input was ok, -1 if we've already reached msg_size or
struct istream *decoded_input,
unsigned int base64_blocks_per_line,
bool base64_have_crlf,
const char **error_r);
struct istream *
#endif