#ifndef MESSAGE_DECODER_H
#define MESSAGE_DECODER_H
#include "unichar.h"
struct message_header_line;
enum message_cte {
MESSAGE_CTE_UNKNOWN = 0,
};
enum message_decoder_flags {
/* Return binary MIME parts as-is without any conversion. */
};
struct message_block;
/* Decode message's contents as UTF-8, both the headers and the MIME bodies.
The bodies are decoded from quoted-printable and base64 formats if needed. */
struct message_decoder_context *
enum message_decoder_flags flags);
/* Change the MESSAGE_DECODER_FLAG_RETURN_BINARY flag */
bool set);
/* Decode input and return decoded output. Headers are returned only in their
full multiline forms.
Returns TRUE if output is given, FALSE if more data is needed. If the input
ends in a partial character, it's returned in the next output. */
struct message_block *input,
struct message_block *output);
/* Returns the parsed Content-Type of the current MIME part. If there is no
explicit Content-Type, returns NULL. */
const char *
/* Call whenever message changes */
/* Decode Content-Transfer-Encoding header. */
#endif