message-decoder.h revision 5cbefc6537aefbf1491416c433de00fc3e649a13
#ifndef MESSAGE_DECODER_H
#define MESSAGE_DECODER_H
enum message_decoder_flags {
/* Return all headers and parts through
uni_utf8_to_decomposed_titlecase() */
MESSAGE_DECODER_FLAG_DTCASE = 0x01,
/* 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 *
/* 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);
/* Call whenever message changes */
#endif